[WebDriver BiDi] Add screenshot origin/format tests#42804
Conversation
ebdb006 to
fd6b01e
Compare
fd6b01e to
c044e0a
Compare
lutien
left a comment
There was a problem hiding this comment.
I see that the target for this PR is another PR and not master, could you maybe change it? It's problematic because the changes from the target PR cause the unit test failures here.
Also, I guess we should test the combination of origin=document and clip, especially interesting would be the case when the target area is outside of viewport. What do you think?
webdriver/tests/bidi/browsing_context/capture_screenshot/invalid.py
Outdated
Show resolved
Hide resolved
webdriver/tests/bidi/browsing_context/capture_screenshot/invalid.py
Outdated
Show resolved
Hide resolved
webdriver/tests/bidi/browsing_context/capture_screenshot/invalid.py
Outdated
Show resolved
Hide resolved
webdriver/tests/bidi/browsing_context/capture_screenshot/format.py
Outdated
Show resolved
Hide resolved
0147918 to
8c03723
Compare
d825448 to
d6f4c4d
Compare
8c03723 to
e85f834
Compare
d6f4c4d to
9578b49
Compare
e6cd773 to
2915ebb
Compare
896bb92 to
35849b0
Compare
|
@jrandolf mind resolving the conflict for this PR before I do the next review? Tests for |
ef12994 to
aca7be3
Compare
2915ebb to
8f81a79
Compare
whimboo
left a comment
There was a problem hiding this comment.
Some remaining comments. Otherwise it seems to be fine now.
webdriver/tests/bidi/browsing_context/capture_screenshot/clip.py
Outdated
Show resolved
Hide resolved
f1a570a to
9d302f2
Compare
9d302f2 to
4b3b12f
Compare
| def __init__( | ||
| self, element: Mapping[str, Any] | ||
| ): | ||
| def __init__(self, element: Mapping[str, Any]): |
There was a problem hiding this comment.
Looks like we missed the call to dict.__init__() here as well, but up to you to fix it now or later.
There was a problem hiding this comment.
@jrandolf please follow up on this once you are back
webdriver/tests/bidi/browsing_context/capture_screenshot/__init__.py
Outdated
Show resolved
Hide resolved
webdriver/tests/bidi/browsing_context/capture_screenshot/origin.py
Outdated
Show resolved
Hide resolved
…n.py Co-authored-by: Henrik Skupin <mail@hskupin.info>
…t__.py Co-authored-by: Henrik Skupin <mail@hskupin.info>
Tests for w3c/webdriver-bidi#564 and w3c/webdriver-bidi#561