angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Protrotractor cannot find the element in a hybrid angular page #5409

Open danffie opened 4 years ago

danffie commented 4 years ago

Our application is moving old angularJS to new angular. So we wrap the old angularjs with new angular to make it a hybrid app. However, the protractor seems even cannot identify the login page element. return browser.wait(protractor.ExpectedConditions.presenceOf(element(by.model('vm.username'))), 60000, "the desired element is not in dom")

Bug report

Feature Request

WillGeller commented 4 years ago

Save yourself months of pain and convert test code to https://www.cypress.io/

singhrajkr commented 4 years ago

@danffie Try setting false for non-angular app page browser.waitForAngularEnabled(false); Try setting true for angular app page browser.waitForAngularEnabled(true);