-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed: EPIPE write EPIPE with ElementArrayFinder.map and SELENIUM_PROMISE_MANAGER:false #4507
Comments
I have got the same issues on my e2e tests. Ex:
I m going to fork your repository 'protractor-mcve' to add a debuggable example 👍 |
@angelfraga Problem is causes by your |
Thanks 😃 , but also i have tried different ways to implement it, in spite of this any without success, the mostly ways got errors. Another two examples more:
Also i work with MacOS Sierra. For example in CI(JENKINS) there is not EPIPE errors. |
We have intermittent errors
Error: EPIPE write EPIPE
when using themap
function ofElementArrayFinder
whenSELENIUM_PROMISE_MANAGER
is set tofalse
. I have the feeling this is caused by the multiple (async) map callbacks being run in parallel which freaks webdriver out. WithSELENIUM_PROMISE_MANAGER
set tofalse
thePromise.all
construction in ElementArrayFinder.map will run the commands concurrently.Having
SELENIUM_PROMISE_MANAGER
totrue
ensures all map functions are executed one at a time as each command waits for the previous promise to resolve.You can see a test case at wvanderdeijl/protractor-mcve@24aa9de
The exception we get is:
Not sure if the issue is OS or browser dependent. We use MacOS 10.13 (High Sierra), Chrome 61.0.3163.100 (both headless and normal), Node 8.4.0, Protractor 5.1.2
The text was updated successfully, but these errors were encountered: