Skip to content
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

Screenshot of wrong browser is taken when protractor works with forked browser. #152

Open
anaidych opened this issue Jun 10, 2019 · 1 comment

Comments

@anaidych
Copy link

browser1 - regular browser.
browser2 - fork of browser1. (browser.forkNewDriverInstance(true))
Case: both browsers work with the same app.
When fail happens in browser2, screenshot of browser1 is taken.
Is there any possibility to take screenshot of browser where the actions are actually happening at that moment?

@miller45
Copy link
Collaborator

We use the global browser object from protractor to make the screenshots and it defaults to the first window always. I did a quick research and there seems to be no method to enumerate all open browsers from the protractor side. Also, we get no hint from reporter interface were errors originate from.
So the answer is no. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants