Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findElementByLinkText() unable to get links that are inside a <li> element #373

Open
alaindesilets opened this issue Nov 13, 2020 · 0 comments

Comments

@alaindesilets
Copy link

JBrowserDriverExperiment.java.zip

It seems findElemenByLinkText() is sometimes unable to correctly parse the anchor text of links that are inside of

    elements. For example:

    <ul>
    <li><a href="somurl">anchor text</a></li>
    </ul>

    The attached java file illustrates this issue. It provides several experiments, each experiment consisting of:

    • downloading a page
    • locating the element with a particular anchor text
    • clicking on that element

    Two of the experiment involve an element that is inside of a <li>. The first one works fine, but in the second experiment, the anchor text of the element appears as an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant