-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Issue with ExpectedConditions working with forked browser instances #3761
Comments
update: This looks like a support question. Please ask your support questions on StackOverflow, Google Group discussion list, or Gitter. For more information please reference https://github.com/angular/protractor/blob/master/CONTRIBUTING.md#questions Thank you! |
@cnishina your example is wrong, you don't have promises in the beforeAll and beforeEach. My example include them. |
Sorry about the initial close...I misread the issue. Alright I think I have an idea why this is breaking. I think the actual question / issue is "Does EC work on forked browser". Reviewing the EC code I believe it does not. Could you use the initial browser object (without forking it)? My guess is that this does works. If it works on browser but not the forked browser, this is definitely a limitation on EC and should be fixed. |
This works:
This does not work: (update fix variables
Just some extra notes to self.
|
Confirmed. Will have a PR to fix this. |
Thank you very much for your help. Just a note: in your example, that does not work, the wait should be on browser2 in order to make it more similar to my example (of course a fix to make browser to work too is required). |
@bitliner yup, I sort of modified the example above it and did a quick copy / paste / edit. I just updated the comment to reflect |
- update sauce lab binary to run on travis closes angular#3761
- update sauce lab binary to run on travis closes angular#3761
- update sauce lab binary to run on travis closes angular#3761
- Update sauce lab binary to run on travis. - Disable expected conditions test that forks the browser. This issue appears to not be specific to sauce labs. Also can reproduce this with a local driver provider. Additional work is required around driver providers and the runner. - Add TODO to enable test in the future when this is resolved. closes angular#3761
…3766) - Update sauce lab binary to run on travis. - Disable expected conditions test that forks the browser. This issue appears to not be specific to sauce labs. Also can reproduce this with a local driver provider. Additional work is required around driver providers and the runner. - Add TODO to enable test in the future when this is resolved. closes #3761
Bug report
v6.9.1
4.0.11
1.5.6
chrome
mac osx
Code of my test is as following:
and user.login() is:
It looks like that it executes instructions in the wrong order, that is:
indeed, the 3rd instruction generates a time out exception. But the browser goes through /home URL, it is a problem of synchronization.
I wonder: how is it possible?
Which is the way to tell protractor: don't use your algorithm for ordering instructions, but I manage the order?
I am using
.then()
for each instruction, but it does not seem enough.It is worth to note that:
The text was updated successfully, but these errors were encountered: