@UserTrue I just realized this script name is taken by another user
Help about ignoring errors
-
My situation:-
I am scraping a lot of similar pages in a loop, each page with 50 elements.
Some of these 50 elements are not expected to appear on each page.If I add an ignore error loop to each element, my code area becomes very hard to read.
My question:-
Is there a way to enable ignore-error globally so that I don't have to add so many ignore-error conditions. -
You already have the answer in the question, you said it probably won't appear, so use "Is element exist".
-
@Melinda
Let's say there are 50 elements to be scraped e1..e50.
If e1 is not found on page, then skip to e2, instead of failing and exiting.
-
@Melinda I need to get text and get url link for each of the elements .
Each value (text/url) gets saved to a variable.e.g. the text of element1 gets saved as variable1.
-
@nitin Sorry I don't have a computer here, I'm texting on my phone so it's a bit slow. You do 2 jobs on one element, you can just use one action "Get element content (xml)", then separate the name and link. Or do it into 2 separate operations, "Get element Text" and "Get link URL".
But for any operation, please notice the area I circled on the image, if you want to perform the operation always without waiting for the element to appear, uncheck "Wait for element". And here's what you need to do => uncheck "Fail thread if....." and the hourglass image, you can set it to "1" seconds.

-
@Melinda This looks perfect thank you so so so so much!!!!
How can I thank you! Are you on buymeacoffee.com ?
-
@Melinda Can't thank you enough.
I wanted to send you a thank you on your telegram too. It seems @devbas on telegram does not exist.
