Forum Discussion
It may be a timing issue. The test can be executing faster than the page can reload.
Using Wait is the best way to handle this. There are examples here:
- AMR0132 years agoContributor
Marsha_R ,
Thanks for your response. I tried adding wait statements to where the issue was occurring, but for some reason it still has trouble finding the object I'm trying to click on when I run my entire script. Once it fails, I comment out the beginning of my script and run it from where it errored out and that same line works. I'm completely stumped as to why it has issues recognizing it upon my entire script run versus running it in a section.
- Marsha_R2 years agoModerator
Have you stepped through it with Debug? It would be interesting to see what's happening in that transition.
- AMR0132 years agoContributor
Marsha_R ,
I did, but all I see that happens is the system does nothing. Not exactly sure what's going on and why it won't work consistently. I have another line that's also going through the same issue (When I run the entire flow, it doesn't work, but when I comment out the beginning and start from where it errored, it works).
Related Content
Recent Discussions
- 2 hours ago
- 6 days ago
- 10 days ago