lucist
14 years agoOccasional Contributor
Wait until a webpage is loaded
Hello!
I am testing a website by navigating through it's pages and searching for specific objects.
The problem is that when clicking on different buttons these will open new pages which are loading quite slow and my script won't find the objects until I call a WaitPage or insert a static Delay
WaitPage Method is requiring a String variable (URL) which needs to be hard-coded in order for the method to function correctly.
My questions :
Thank you,
Lucian
I am testing a website by navigating through it's pages and searching for specific objects.
The problem is that when clicking on different buttons these will open new pages which are loading quite slow and my script won't find the objects until I call a WaitPage or insert a static Delay
WaitPage Method is requiring a String variable (URL) which needs to be hard-coded in order for the method to function correctly.
My questions :
- is there any method that I can use to get and store automatically the URL of a page into a variable without hard-coding it? I am asking this because there are dozens of pages and it's quite hard to navigate through each page and save it's link into my script.
- also, is there a way to determine if a page has finished to load/download ( Browser loading ) and then go to the next steps in the script?
Thank you,
Lucian