1.

What Is The Difference Between "get" And "navigate" To Open A Web Page In Protractor?

Answer»

Get method will get a PAGE to load or get page source or get text that's all whereas navigate will guide through the history like refresh, BACK, forward.

For EXAMPLE if we WANT to move forward and do some functionality and back to the home page this can be achieved through navigate() only.

Browser. Get () will wait till the WHOLE page gets loaded and browser. Navigate () will just redirect to that page and will not wait.

Get method will get a page to load or get page source or get text that's all whereas navigate will guide through the history like refresh, back, forward.

For example if we want to move forward and do some functionality and back to the home page this can be achieved through navigate() only.

Browser. Get () will wait till the whole page gets loaded and browser. Navigate () will just redirect to that page and will not wait.



Discussion

No Comment Found