gilad
3 years agoOccasional Visitor
Screenshots - Selenium JSON script - don't fail when element doesn't exist
Hi, I'm running a screenshots test with a Selenium JSON script (added below). On some browsers, that element doesn't exist at the time of step execution. Those browser results show "Screenshot ...
- 3 years ago
Hi gilad@!
Is the object you are referring to sometimes not present at all? Or does the script just need to pause sometimes while the element loads?
If there are times where it will not be present at all, unfortunately there is not a lot we can do there. These JSON scripts really don't allow for any type of logic or conditions to handle events like this. Though if it's just a matter of waiting, we can use timeouts, but I see you are already using that so I assume that is not applicable.