How to find the button by text and click


As the picture shows,I want to find the underlined button on the web pages by text and then chick the button. However, I tried to do it by find text position activity. It doesn’t work.

@szhao Why can’t you use Click element ?

The button to click will change with text

Your can add the text which is dynamic as variable to the selector.

try to operate with button idx value instead of text.

I have a similar issue and it doesn’t look like this was solved yet. I need to click on text within the browser. The selector will not correspond at all to the text that needs to be clicked so it has to be done by reading text on the screen without reference to a selector. How could search the screen for text and click on it without using a selector?