Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited title
Link
IAmMilinPatel
  • 7.8k
  • 7
  • 43
  • 68

How to click on an iOS MobileElement (button) whichwhose attribute "name" is dynamically changinggenerated on the run using XPathXpath?

Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user

How to click on an iOS MobileElement (button) which is dynamically changing using xPathXPath

Below is the xPathXPath-

//XCUIElementTypeButton[@name="8/13"]

The numeric value in the above xPathXPath 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?

How to click on an iOS MobileElement (button) which is dynamically changing using xPath

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?

How to click on an iOS MobileElement (button) which is dynamically changing using XPath

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?

Add XPath to tags, remove superfluous tags
Link
Kate Paulk
  • 31.5k
  • 8
  • 55
  • 109
Formatting.
Source Link
Kate Paulk
  • 31.5k
  • 8
  • 55
  • 109
Loading
Source Link
Loading