[Webkit-unassigned] [Bug 174499] 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:18:57 PDT 2017


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

Carlos Garcia Campos <cgarcia at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #315414|                            |review?
              Flags|                            |

--- Comment #1 from Carlos Garcia Campos <cgarcia at igalia.com> ---
Created attachment 315414

  --> https://bugs.webkit.org/attachment.cgi?id=315414&action=review

Patch

This won't apply because it depends on patch attached to bug #174498. Note also that this still doesn't fix test_Driver_Can_Get_Link_By_Link_Test_Ignoring_Trailing_Whitespace, but now it fails because of our poor implementation of GetText:

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

driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="e5b70972-d8f7-4de9-8324-d6f4e3607345")>, pages = <conftest.Pages object at 0x7f3257a58490>

    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")
        assert link.get_attribute("id") == "linkWithTrailingSpace"
>       assert link.text == "link with trailing space"
E       assert 'link with trailing space ' == 'link with trailing space'
E         - link with trailing space 
E         ?                         -
E         + link with trailing space

selenium/webdriver/common/driver_element_finding_tests.py:568: AssertionError

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


More information about the webkit-unassigned mailing list