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
support
duplicate-directive.sub.html -rw-r--r-- 939 bytes
fail-0_1.js -rw-r--r-- 102 bytes
filesystem-urls-do-not-match-self.sub.html -rw-r--r-- 2.4 KB
filesystem-urls-match-filesystem.sub.html -rw-r--r-- 2.4 KB
generic-0_1-img-src.html -rw-r--r-- 1.4 KB
generic-0_1-script-src.html -rw-r--r-- 1.5 KB
generic-0_10.html -rw-r--r-- 1018 bytes
generic-0_10_1.sub.html -rw-r--r-- 1.1 KB
generic-0_2.html -rw-r--r-- 767 bytes
generic-0_2_2.sub.html -rw-r--r-- 1.0 KB
generic-0_2_3.html -rw-r--r-- 1.2 KB
generic-0_8.sub.html -rw-r--r-- 1.1 KB
generic-0_8_1.sub.html -rw-r--r-- 1.2 KB
generic-0_9.sub.html -rw-r--r-- 1.0 KB
negativeTests.js -rw-r--r-- 95 bytes
no-default-src.sub.html -rw-r--r-- 3.1 KB
no-default-src.sub.html.sub.headers -rw-r--r-- 326 bytes
pass-0_1.js -rw-r--r-- 49 bytes
policy-does-not-affect-child.sub.html -rw-r--r-- 716 bytes
policy-inherited-correctly-by-plznavigate.html -rw-r--r-- 1.3 KB
policy-inherited-correctly-by-plznavigate.html.sub.headers -rw-r--r-- 350 bytes
positiveTest.js -rw-r--r-- 139 bytes
unreached.js -rw-r--r-- 102 bytes
wildcardHostTest.js -rw-r--r-- 191 bytes
wildcardHostTestFailure.js -rw-r--r-- 196 bytes
wildcardHostTestSuceeds.js -rw-r--r-- 28 bytes
wildcardPortTest.js -rw-r--r-- 191 bytes
wildcardPortTestSuceeds.js -rw-r--r-- 27 bytes

back to top