[Webkit-unassigned] [Bug 174498] New: Web Automation: link and partial link queries don't work if the link contains formatting tags

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


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

            Bug ID: 174498
           Summary: Web Automation: link and partial link queries don't
                    work if the link contains formatting tags
           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

So, for example, if we find links with text "Foo" and there's a link like <a href=""><bA>Foo</b></a> we fail with no such element error. This causes test test_Link_With_Formatting_Tags to fail.

========================================================================================== FAILURES ==========================================================================================
_________________________________________________________________________ test_Link_With_Formatting_Tags[WebKitGTK] __________________________________________________________________________

driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="38543e9a-0de3-40ae-9cb8-af4e20f27c58")>, pages = <conftest.Pages object at 0x7fdba75e2490>

    def test_Link_With_Formatting_Tags(driver, pages):
        pages.load("simpleTest.html")
        elem = driver.find_element(By.ID, "links")

>       res = elem.find_element(By.PARTIAL_LINK_TEXT, "link with formatting tags")

E       NoSuchElementException: Message:

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

I think we could simply use descendant-or-self::text() instead of just text() in the links xpath expressions.

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


More information about the webkit-unassigned mailing list