Home page

Thursday, October 17, 2019

Difference between get and navigate methods | driver.get vs driver.navigate

Both get & navigate can be used in page loading and difference in behaviour is as follow:
  1. Wait for page to load: get will wait. navigate will not wait so navigate is faster than get.
  2. Save browser history & cookies: navigate will save so forward(), back() & refresh() commands can be used. get will not save.

No comments:

Post a Comment