How to click the button which is only in CAPS letter? using selector

How to click the button which is only in CAPS letter? Say like in a page contain 2 Search button “Search” & “SEARCH”. Wanna click only “SEARCH” button. tried by regex. which is invalid. How to achieve this.


image

Hi @Sparkle_s

You want to read the text? So you want also only the CAPS?

You can do it in another way.
You can read the entire text as String. And then you can split the string. and then you can take one word from the entire string and set it as CAPS.

Hey,

try making your selector case sensitive (see Case-Sensitive Selectors) and just use innertext='SEARCH'
No RegEx required :wink:

Thanks for your solutions @Dawodm , @lukasziebold.

Got resolved by valid regex "aaname=‘(^S*[A-Z]{6})’ "

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.