[Webkit-unassigned] [Bug 174497] New: Web Automation: FindNodes should throw an error in case of invalid strategy

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 14 00:50:46 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=174497

            Bug ID: 174497
           Summary: Web Automation: FindNodes should throw an error in
                    case of invalid strategy
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cgarcia at igalia.com
                CC: bburg at apple.com, joepeck at webkit.org

We are currently returning null or empty list. According to the spec in 12.2 Find Element and 12.3 Find Elements, step 4.

"If location strategy is not present as a keyword in the table of location strategies, return error with error code invalid argument."

This is causing test test_should_throw_an_error_if_user_passes_in_invalid_by_when_find_elements to fail.

FAIL selenium/webdriver/common/children_finding_tests.py::test_should_throw_an_error_if_user_passes_in_invalid_by_when_find_elements[WebKitGTK]

========================================================================================== FAILURES ==========================================================================================
___________________________________________________ test_should_throw_an_error_if_user_passes_in_invalid_by_when_find_elements[WebKitGTK] ____________________________________________________

driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="4d2ddead-0495-4dcb-bccd-6e8182b7b291")>, pages = <conftest.Pages object at 0x7f1957b53490>

    def test_should_throw_an_error_if_user_passes_in_invalid_by_when_find_elements(driver, pages):
        pages.load("nestedElements.html")
        element = driver.find_element_by_name("form2")
        with pytest.raises(WebDriverException):
>           element.find_elements("foo", "bar")
E           Failed: DID NOT RAISE <class 'selenium.common.exceptions.WebDriverException'>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170714/ac7d1a89/attachment-0001.html>


More information about the webkit-unassigned mailing list