4

In the same page how to switch from non-angular to angular, it is clicking on non-angular elements but not on angular, when clicking on non-angular lookup then angular window(Popup) will open

JAINAM
1,8453 gold badges19 silver badges39 bronze badges
asked Feb 2, 2018 at 10:13
1
  • 1
    What's the error and relevant html source? Commented Apr 7, 2018 at 18:47

1 Answer 1

2

If I understand your question correctly. The solution is:

browser.waitForAngularEnabled(false); - for disabling Angular browser.waitForAngularEnabled(true); - for enabling Angular

Then switch to the new window and search the angular element.

answered Feb 5, 2018 at 14:39
3
  • 1
    Your definition seems incorrect or incomplete. The method you referenced doesn't disable Angular but it does change how Protractor works/waits for different applications to finish loading. Commented Mar 7, 2018 at 16:22
  • It’s referenced to official documentation from Protractor. It says If you need to navigate to a page which does not use Angular, you can turn off waiting for Angular by setting browser.waitForAngularEnabled(false). Commented Mar 14, 2018 at 18:43
  • 1
    I agree with the explanation in your comment but it's inconsistent with your original answer. Sorry for the pedantry. Commented Mar 14, 2018 at 21:22

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.