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

Can not chain find_link_by syntax to find_by #575

Closed
j7an opened this issue Jan 4, 2018 · 2 comments
Closed

Can not chain find_link_by syntax to find_by #575

j7an opened this issue Jan 4, 2018 · 2 comments

Comments

@j7an
Copy link

j7an commented Jan 4, 2018

I would like to use the following format to find a link within an xpath:

field = context.browser.find_by_xpath(xpath_location).find_link_by_partial_text(text)
    field.click()

But this fails with the following error:

AttributeError: 'ElementList' object has no attribute 'find_link_by_partial_text'

I can use the following alternative:

field = context.browser.find_by_xpath(xpath_location).find_by_text(text)
    field.click()
@andrewsmedina
Copy link
Member

@j7an thanks for report

@andrewsmedina
Copy link
Member

closed by #699

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

No branches or pull requests

2 participants