Element that exists on all webpages that successfully load


I need to capture the “This site can’t be reached” whenever a bad url encountered from a long list of URLs. Does anyone know if there is a common element that can be used in “element exists” that applies to every webpage that successfully loads? since the selector doesn’t work when the site can’t be reached, I need to do it the other way by testing if the page loads successfully. the issue here is that the list of URLs are all random and different. thanks in advance

I ended up using CV scope and CV element exists, not an elegant way but worked.

Hey @lynnsong986

I see you have a solution but another suggestion (not elegant either) could you have scraped the text off the page and looked for the title of the website OR ‘phrases/words’ like ‘error, could not load, this site can’t be reached’ etc (build up a collection of these words based off screenshots).

Throw an error if you got a match on the error words.



1 Like

Yea searching for partial url would work too. Thanks for your suggestion!

1 Like

Ah i see, I see. This tips is useful for automation requirements with unstable web pages.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.