I am doing a test of scenarios like this:
- access protected link (driver.get(link))
- redirect to login page
- write username/pass and press login button
- redirect to initial page
The problem is that after login the "initial page" is taking too much to load. I only want to make a simple check on the page (1/2 elements) but it takes to long and I am losing time doing this.
So does anybody know a way to get around waiting for the page to load? (the elements I want are loaded fast +plus I wait for them after I get the context of the page)
I thought about taking the link from the button and do driver.navigate.to(link_button)
but I want to avoid this.