I'm a protractor learner. So, I'm trying different methods in my tests while I'm testing my application. So, I was using browser.setLocation
Before Each test for cases like page redirected during the test run, instead of just using browser.driver.get
As I understand I think using of browser.setLocation
resolved lots of random failures I faced while running the test. I didn't want to use a browser.sleep()
.
I read this Protractor documentation for more clarification and it doesn't help.
Can someone tell me the usage of this method. Any kind of information will be appreciated.
Thanks in advance. :)