Protractor: Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are undefined

后端 未结 3 1723
再見小時候
再見小時候 2021-01-17 14:37

I am trying to write some end to end tests and waned to use async and await.

configuration file

exports.config = {
    framework: \'jasmine\',
             


        
3条回答
  •  余生分开走
    2021-01-17 14:47

    Give the getPageTimeOut more than 20 sec. Use explicit wait like browser.sleep(2000) after browser.get method. The error occured may be because of slow response from webpage and also use dirctConnect instead of seleniumAddress.

提交回复
热议问题