We have options to log in with 3rd party providers using your Google or Microsoft accounts. I just need to verify that when you click on the link you get taken to the right provider page. After the page is loaded, I get:
Error: Error while waiting for Protractor to sync with the page
Seems the WebDriver instance is disconnected. What's the proper way to verify you've landed in a 3rd party site using protractor?
Protractor waits until angular is done loading to proceed with your test. It will show you that error because you are going to a non-angular URL. To test non-angular pages you should use the webdriver api directly.
You can access webdriver through browser.driver
Here is an example: https://github.com/angular/protractor/blob/master/spec/withLoginConf.js
You can find some documentation here: https://github.com/angular/protractor/blob/master/docs/getting-started.md#setting-up-the-system-under-test
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments