Skip to main content

Notifications

Power Automate - Power Automate Desktop
Answered

"If web page contains" not working/skipped

(0) ShareShare
ReportReport
Posted on by 75

umarbutler/open-australian-legal-corpus · Datasets at Hugging Face

I am trying to scrape data from the above website but the problem is that sometimes when the website launches it won't load the content (Blank page). The solution is to refresh the page for the content to appear.

 

So I have a condition to check if UI element does not exist in webpage, if true then refresh the page. The problem is that, whenever the UI element is not detected, my flow got stuck in action #4 "If web page contains" for about a minute and then it jumps straight to action #8? Which won't work because action #5 and 6 were not executed as the webpage is still blank. Is this a bug and can someone point me to the right direction please

nicklimcs_3-1715825300947.png

 

So to replicate the issue(getting the blank page), all you have to do is to copy and paste the link to a new tab.

  • Verified answer
    nicklimcs Profile Picture
    nicklimcs 75 on at
    Re: "If web page contains" not working/skipped

    Hi guys,

     

    Thanks for the responses.

     

    So I managed to get it work by using "Wait for web page content" and if it timed-out set varTimeout to true, and run the if condition. Not sure why "If web page contains" doesn't work for me but it should.

    nicklimcs_0-1715897974990.png

     

  • VishnuReddy1997 Profile Picture
    VishnuReddy1997 2,214 on at
    Re: "If web page contains" not working/skipped

    Hi @nicklimcs ,

     

    I tried in my system its working.In IF web page contains action only try with Text as shown in below image.

    VishnuReddy1997_0-1715834991323.png

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • Deenuji_Loganathan_ Profile Picture
    Deenuji_Loganathan_ 6,087 on at
    Re: "If web page contains" not working/skipped

    @nicklimcs 

     

    Could you kindly provide your code so that we can evaluate the configuration and offer further assistance?

    Please verify that your send keys are configured correctly and that they are refreshing your webpage accurately.

     

    If your if condition is bypassing the execution of steps #5 and #6, there could be a possibility that your web page is only partially loaded. However, without a clear understanding of the exact scenario, I can't provide further comment on this matter.

     

    Even after multiple attempts in my browser, I consistently did not encounter any blank pages. The mentioned website consistently loaded correctly each time.


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard