ian_carter
11 years agoNew Contributor
Verifying objects randomly results in object not found
I have configured a script for a site where it launches FireFox | Logs into the site | Clicks a link and verifies all checkboxes exist on the page, then moves onto the next link, and so on.
Sometimes the script will complete without any errors, but sometimes the script will complete with errors randomly that it cannot find certain objects. Every time the script is ran and fails, it's always at a different location where the object can't be loaded. So I can't just add a wait to one object because I never know where it'll fail next.
The object IDs exist on the page, nothing has changed.
For my VerifyField function, I've tried to add a Refresh() so that it will refresh before verifying the object exists. However, intermittently, I'm still seeing the errors at random places.
I don't know if a Wait function is going to help as there are a ton of VerifyField that take place in this one script.
I'm still doing research on this but if anyone has any input, it'd be appreciated.
Thanks,
Sometimes the script will complete without any errors, but sometimes the script will complete with errors randomly that it cannot find certain objects. Every time the script is ran and fails, it's always at a different location where the object can't be loaded. So I can't just add a wait to one object because I never know where it'll fail next.
The object IDs exist on the page, nothing has changed.
For my VerifyField function, I've tried to add a Refresh() so that it will refresh before verifying the object exists. However, intermittently, I'm still seeing the errors at random places.
I don't know if a Wait function is going to help as there are a ton of VerifyField that take place in this one script.
I'm still doing research on this but if anyone has any input, it'd be appreciated.
Thanks,