Below is the XPath-
//XCUIElementTypeButton[@name="8/13"]
The numeric value in the above XPath changes and is not static. There are more then 10 buttons on the screen, I want to click on the first one.
Text1 btn1 //let’s say btn1 contains 8/13
Text2 btn2 //let’s say btn1 contains 4/8
Can anyone help me to achieve this task?
//XCUIElementTypeButton[1]
should do it. (Disclaimer: I am not an Xpath expert)