-
-
Notifications
You must be signed in to change notification settings - Fork 737
Multi sessions screenshotOnFail not working correctly. #4623
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
Comments
It helps a lot to have the screenshots for debug, when you have scenarios with more than 2 sessions. |
@kobenguyent I will try to explain it here hoping that someone can figure out. 1st Issue:
If the test fails inside a different session ("multiple session") the plugin will try to add the main session screenshot that doesn't exist and the screenshot from the other session will never be attached. Expected result:
Actual Result:
2nd Issue:
In this case we expect only the screenshot from the 2nd "multiple session" but the plugin is trying to attach a screenshot that doesn't exist from the 1st session because it didn't fail on that one.
and the for loop inside webdriver.js line 1836 is saving the screenshot with the 1st session name with the browser of the 2nd session:
Expected result:
Actual result:
|
What are you trying to achieve?
Few months ago I asked if there's a way to save a screenshotAfterFail of a session + the original browser with Webdriver post .
A pr was created but looks like it doesn't work 100% of the time, I can't get all the screenshots like in the PR description.
I made a version of the test created on the PR to test it out.
What do you get instead?
I get all the screenshots except the after fail screenshot of the main browser.


but appears as artificat on the output
Output with ---verbose
Details
The text was updated successfully, but these errors were encountered: