Skip to main content
added 24 characters in body
Source Link
IAmMilinPatel
  • 7.8k
  • 7
  • 43
  • 68

I think in XPath you are using the name or value which may be keepdynamic (keeps on changing). So, soyou can go for the concept of following siblingfollowing sibling for getting the proper XPath.

Example:

 //XCUIElementTypeButton[@name='testing']/../following-sibling::XCUIElementTypeStaticText

I think in XPath you are using the name or value may be keep on changing, so can go for the concept of following sibling for getting the proper XPath.

Example:

 //XCUIElementTypeButton[@name='testing']/../following-sibling::XCUIElementTypeStaticText

I think in XPath you are using the name or value which may be dynamic (keeps on changing). So, you can go for the concept of following sibling for getting the proper XPath.

Example:

 //XCUIElementTypeButton[@name='testing']/../following-sibling::XCUIElementTypeStaticText

I think in xpathXPath you are using the name or value may be keep on changing, so can go for the concept of following sibling for getting the proper xpathXPath.

example: //XCUIElementTypeButton[@name='testing']/../following-sibling:Example:XCUIElementTypeStaticText

 //XCUIElementTypeButton[@name='testing']/../following-sibling::XCUIElementTypeStaticText

I think in xpath you are using the name or value may be keep on changing, so can go for concept of following sibling for getting the proper xpath.

example: //XCUIElementTypeButton[@name='testing']/../following-sibling::XCUIElementTypeStaticText

I think in XPath you are using the name or value may be keep on changing, so can go for the concept of following sibling for getting the proper XPath.

Example:

 //XCUIElementTypeButton[@name='testing']/../following-sibling::XCUIElementTypeStaticText
Source Link
NGOWDA
  • 1
  • 1
  • 3

I think in xpath you are using the name or value may be keep on changing, so can go for concept of following sibling for getting the proper xpath.

example: //XCUIElementTypeButton[@name='testing']/../following-sibling::XCUIElementTypeStaticText