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
File | Mode | Size |
---|---|---|
resources | ||
README.md | -rw-r--r-- | 95 bytes |
animation-worklet-credentials.https.html | -rw-r--r-- | 408 bytes |
animation-worklet-csp.https.html | -rw-r--r-- | 410 bytes |
animation-worklet-import.https.html | -rw-r--r-- | 398 bytes |
animation-worklet-referrer.https.html | -rw-r--r-- | 402 bytes |
animation-worklet-service-worker-interception.https.html | -rw-r--r-- | 471 bytes |
layout-worklet-credentials.https.html | -rw-r--r-- | 405 bytes |
layout-worklet-csp.https.html | -rw-r--r-- | 407 bytes |
layout-worklet-import.https.html | -rw-r--r-- | 395 bytes |
layout-worklet-referrer.https.html | -rw-r--r-- | 399 bytes |
layout-worklet-service-worker-interception.https.html | -rw-r--r-- | 468 bytes |
paint-worklet-credentials.https.html | -rw-r--r-- | 404 bytes |
paint-worklet-csp.https.html | -rw-r--r-- | 406 bytes |
paint-worklet-import.https.html | -rw-r--r-- | 394 bytes |
paint-worklet-referrer.https.html | -rw-r--r-- | 398 bytes |
paint-worklet-service-worker-interception.https.html | -rw-r--r-- | 467 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...