-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
The framework allows you to click a link with text for example self.click_link_text(text) but this does not work if the element is not a link. Is there a way to do that by just providing the element text rather than a selector ?
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
mdmintz
Nov 27, 2021
@maburrub Use the :contains(text)
selector.
E.g. self.click('button:contains("Submit")')
Replies: 1 comment
-
@maburrub Use the :contains(text)
selector.
E.g. self.click('button:contains("Submit")')
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment