I watched this video (https://www.youtube.com/watch?v=idb6hOxlyb8) which was uploaded Aug 2013. It claims that we should use
ptor.get(url)
rather than
browser().navigateTo(url)
in future. But when I look at docs on the protractor home page (on git hub) and their newest examples are still using browser.
I am wondering if any one knows the movement to use
var ptor = protractor.getInstance()
still happening?
Thank you very much in advance!
Using ptor
is obsolete, you should switch to browser
from now on.
Regarding the modern way to navigate to a page, use: browser.get(url)
If is not an angular page then browser.driver.get(url)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With