[Webkit-unassigned] [Bug 174499] New: Web Automation: link and partial link queries don't work if text link contains trailing or leading whitespaces

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 14 03:14:14 PDT 2017


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

            Bug ID: 174499
           Summary: Web Automation: link and partial link queries don't
                    work if text link contains trailing or leading
                    whitespaces
           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

This is causing test test_Driver_Can_Get_Link_By_Link_Test_Ignoring_Trailing_Whitespace to fail. The selenium atoms don't use xpath for links, they use css query to get all links and then they compare with the *visible* text. I think we can keep using xpath, though, but using normalize-space() function to compare with the given text.

========================================================================================== FAILURES ==========================================================================================
_______________________________________________________ test_Driver_Can_Get_Link_By_Link_Test_Ignoring_Trailing_Whitespace[WebKitGTK] ________________________________________________________

driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="add1a4bd-2753-4b49-96b1-fd9dfa64e6d0")>, pages = <conftest.Pages object at 0x7ff814790490>

    def test_Driver_Can_Get_Link_By_Link_Test_Ignoring_Trailing_Whitespace(driver, pages):
        pages.load("simpleTest.html")
>       link = driver.find_element(By.LINK_TEXT, "link with trailing space")

E       NoSuchElementException: Message:

../selenium/webdriver/remote/errorhandler.py:193: NoSuchElementException

-- 
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/b7263e8f/attachment.html>


More information about the webkit-unassigned mailing list