Revision 89ba9443f1d80b2bea3a33477b1ac53585fbb16d authored by jimevans on 16 March 2018, 14:46:32 UTC, committed by Andreas Tolfsen on 16 March 2018, 14:46:32 UTC
When the context element is `document.documentElement`, and an attempt is
made to find elements from that context element using an XPath of `..`, a
snapshot is returned containing the `document` object. While this is
apparently the correct behavior for XPath, the WebDriver spec says that if
the object in the snapshot is not an element, we should return an error
with error code "invalid selector." The test_parent_htmldocument test in
both find_element_from_element.py and find_elements_from_element.py expect
a success in this case. This commit changes the tests to correctly expect
an error from the driver.
1 parent 1cbb928
History
File Mode Size
form-action
support
anchor-navigation-always-allowed.html -rw-r--r-- 500 bytes
anchor-navigation-always-allowed.html.headers -rw-r--r-- 151 bytes
child-navigates-parent-allowed.html -rw-r--r-- 530 bytes
child-navigates-parent-allowed.html.headers -rw-r--r-- 177 bytes
child-navigates-parent-blocked.html -rw-r--r-- 589 bytes
child-navigates-parent-blocked.html.headers -rw-r--r-- 151 bytes
form-allowed.html -rw-r--r-- 473 bytes
form-blocked.html -rw-r--r-- 530 bytes
form-cross-origin-allowed.sub.html -rw-r--r-- 614 bytes
form-cross-origin-blocked.sub.html -rw-r--r-- 632 bytes
form-redirected-allowed.html -rw-r--r-- 483 bytes
form-redirected-blocked.sub.html -rw-r--r-- 637 bytes
href-location-allowed.html -rw-r--r-- 490 bytes
href-location-blocked.html -rw-r--r-- 547 bytes
href-location-cross-origin-allowed.sub.html -rw-r--r-- 631 bytes
href-location-cross-origin-blocked.sub.html -rw-r--r-- 649 bytes
href-location-redirected-allowed.html -rw-r--r-- 500 bytes
href-location-redirected-blocked.sub.html -rw-r--r-- 654 bytes
link-click-allowed.html -rw-r--r-- 472 bytes
link-click-blocked.html -rw-r--r-- 529 bytes
link-click-cross-origin-allowed.sub.html -rw-r--r-- 613 bytes
link-click-cross-origin-blocked.sub.html -rw-r--r-- 631 bytes
link-click-redirected-allowed.html -rw-r--r-- 482 bytes
link-click-redirected-blocked.sub.html -rw-r--r-- 636 bytes
meta-refresh-allowed.html -rw-r--r-- 474 bytes
meta-refresh-blocked.html -rw-r--r-- 531 bytes
meta-refresh-cross-origin-allowed.sub.html -rw-r--r-- 615 bytes
meta-refresh-cross-origin-blocked.sub.html -rw-r--r-- 633 bytes
meta-refresh-redirected-allowed.html -rw-r--r-- 484 bytes
meta-refresh-redirected-blocked.sub.html -rw-r--r-- 638 bytes
parent-navigates-child-allowed.html -rw-r--r-- 870 bytes
parent-navigates-child-allowed.html.headers -rw-r--r-- 151 bytes
parent-navigates-child-blocked.html -rw-r--r-- 887 bytes
parent-navigates-child-blocked.html.headers -rw-r--r-- 177 bytes

back to top