-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Protractor testing for Multiple Angular Application #5494
Comments
I've faced with the same issue several times ago and, according your comments, almost sure that issue is on application side. Our developers fixed this in application and e2e under protractor works fine. BTW: I also recommend you to modify style of test cases, I can see some mix of control flow and async/await. |
@StanislavKharchenko Which means what changes you made in your application? and which one 1st or 2nd? I am getting the problem whenever i navigate to my second application. :( |
@rameshrajendran214 this means that application you testing has implementation issue regarding async tasks usage, which should be called outside angular. You need to contact developers to investigate and fix it. If allscriptstimeout and getpagetimeout don't help - this is 100% issue with application. |
I have found the root cause is Application insight, So I have moved the code outside of angular. Now the protractor is working very well.
And ngb-carousel also throwing the same error For that I have fixed by the same Add [interval]='0' in carousel control
Add this code in componenet.ts @ViewChild(NgbCarousel) Define NgZone in constructor
add this below line in ngOninit hook |
I have two angular application
1- For Login
2- For business Logic
Currently I have tried to start automation testing for these applications by using protractor. But facing problem to get the element details from 2nd application after login(1st application).
FYI, the files are
I have done the logic for login by this below way and it is working very well
But while getting the element value from 2nd application I am getting error
Error:
I can able to see the element in browser and it is visible. But protractor throwing the error as it is not there. I know it will be solved if I providing false for
WaitForAngularDisabled(false)
. But the both applications are implemented by Angular only. So I don't want to loose any protractor features by disable angular. So kindly let me know how to test two angular application by protractor?The text was updated successfully, but these errors were encountered: