Difference between driver.get() and driver.navigate()
- Will wait till the page loads completely with all controls in place.
- Used to get page source.
//returns the page source of current url that driver holds
- Can navigate the page forward/backward
<span style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"> driver.navigate().forward();
- Used to refresh history.
- To redirect a page
- will not wait till page loads
In general, both get and navigate do the same task when invoking the url.(just small change in the services they both offers).
Content posted is based on learning or working experience,
Share the post with others if find useful,
Any queries?, leave comments or discuss on our facebook:qavalidation.com, Thanks!