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
resources
OWNERS -rw-r--r-- 36 bytes
clear_all_marks.any.js -rw-r--r-- 556 bytes
clear_all_measures.any.js -rw-r--r-- 838 bytes
clear_non_existent_mark.any.js -rw-r--r-- 1.2 KB
clear_non_existent_measure.any.js -rw-r--r-- 1.4 KB
clear_one_mark.any.js -rw-r--r-- 1.0 KB
clear_one_measure.any.js -rw-r--r-- 1.2 KB
entry_type.any.js -rw-r--r-- 670 bytes
idlharness.html -rw-r--r-- 1.6 KB
invoke_with_timing_attributes.html -rw-r--r-- 1.2 KB
invoke_with_timing_attributes.worker.js -rw-r--r-- 733 bytes
invoke_without_parameter.html -rw-r--r-- 1.1 KB
mark.any.js -rw-r--r-- 3.8 KB
mark_exceptions.html -rw-r--r-- 1.2 KB
measure.html -rw-r--r-- 14.7 KB
measure_exceptions_navigation_timing.html -rw-r--r-- 3.2 KB
measure_navigation_timing.html -rw-r--r-- 10.4 KB
measure_syntax_err.any.js -rw-r--r-- 1.5 KB
user_timing_exists.any.js -rw-r--r-- 500 bytes

back to top