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
Add page snapshot functionality #698
Comments
Can you use this if you don't have a page object? I.e. when visiting a page without using Atata, just navigating to it. We'd take a snapshot of the current page. |
You mean you have built |
Yes, exactly. |
Such scenario was not considered. But I made another commit to make it work. Now it's fine. |
Awesome, thank you.! This looks good. We'll check it out once you release it. |
Atata v2.4.0 is released already. |
Yep, seen it, thanks. We'll check this out as soon as we can. |
We've added the usage of this feature to the Lombiq UI Testing Toolbox for Orchard Core in this PR. In hindsight, it's straightforward, but the first time it was quick complex to understand where the snapshot can actually be retrieved from. Thank you again! |
A new functionality for taking a page snapshot, which can be either HTML or MHTML file. For Chromium-based browsers (Chrome and Edge) a snapshot by default is taken using CDP command
Page.captureSnapshot
. For other browsers a snapshot is taken usingIWebDriver.PageSource
property.Methods
A method added to
Report<TOwner>
:Usage:
A method added to
AtataContext
:Usage:
Configuration
A property is added to
AtataContextBuilder
:PageSnapshotsAtataContextBuilder
contains the following methods:Usage
NUnit
An extra configuration method added to
AtataContextBuilder
:Also
UseAllNUnitFeatures()
configuration method now includes invoking ofTakePageSnapshotOnNUnitError()
.Trigger attribute
Additionally
TakePageSnapshotAttribute
trigger is added.The text was updated successfully, but these errors were encountered: