web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using TextList when pa...
Power Automate
Unanswered

Using TextList when parsing through website

(0) ShareShare
ReportReport
Posted on by

Hi,

I am trying to look for specific words on a webpage. When I do a single If text doesn't exist on web page it works fine.

 

When I create a TextList and use:

Web browser instance: %Browser%

Check if web page: "Doesn't contain text"

Text: %TextList%

 

This does not work. I used "Add Item to List" and added several strings to the list. 

 

Am I doing something wrong or is there another solution to check for multiple strings on a webpage?

 

Thanks

Steve O

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @steve_o_44 

     

    As you can see this action takes a Text and not a List or a Datatable type of variable.

    Therefore you will need to loop through your List variable and pass each individual Text to the below box one by one within the loop. Code your logic such that if all Text from the List is found then return True if not then False.

     

    VJR_0-1658979003243.png

     

  • rolign Profile Picture
    on at

    Something like this (copy-paste in PAD):

     

    Variables.CreateNewList List=> TextList
    SET ContainsText TO $'''True'''
    LOOP FOREACH ListItem IN TextList
    IF (WebAutomation.IfWebPageContains.WebPageDoesNotContainText BrowserInstance: Browser Text: ListItem) THEN
    SET ContainsText TO $'''False'''
    END
    END

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard