[wdspec] Add tests for proposed full page screen endpoint #26652
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed a new endpoint /screenshot/full to capture full page screenshot in [1]
Copied and modified tests from webdriver/tests/take_screenshot and added one more test for a large page.
In iframe.py test_source_origin, deleted the last comparison between reference_screenshot and screenshot because
they are not the same for full page screenshot(reason unknown to me). The behavior is verified using Chrome DevTools to take full page screenshot directly. Images are the same if taking regular screenshot but different taking full page screenshot. @whimboo Any ideas?
[1] w3c/webdriver#1536