Skip to main content

Xpath XPath of an element keeps changing when testing in different OS or device

Me and my team sometimes experienced this issue when testing one cucumberCucumber feature in:

  • different version of Android and iOS

  • different device with same OS version.

thisThis really slowing us down because we need different xpathXPath for different environment. reallyReally time consuming to do this over and over again and really hard to maintain our element locator.

ourOur devs developed the app we're testing in React.

myMy question simply, why this thing happened and how we work around it? isIs there any solution?

Xpath of an element keeps changing when testing in different OS or device

Me and my team sometimes experienced this issue when testing one cucumber feature in:

  • different version of Android and iOS

  • different device with same OS version.

this really slowing us down because we need different xpath for different environment. really time consuming to do this over and over again and really hard to maintain our element locator.

our devs developed the app we're testing in React.

my question simply, why this thing happened and how we work around it? is there any solution?

XPath of an element keeps changing when testing in different OS or device

Me and my team sometimes experienced this issue when testing one Cucumber feature in:

  • different version of Android and iOS

  • different device with same OS version.

This really slowing us down because we need different XPath for different environment. Really time consuming to do this over and over again and really hard to maintain our element locator.

Our devs developed the app we're testing in React.

My question simply, why this thing happened and how we work around it? Is there any solution?

Source Link

Xpath of an element keeps changing when testing in different OS or device

Me and my team sometimes experienced this issue when testing one cucumber feature in:

  • different version of Android and iOS

  • different device with same OS version.

this really slowing us down because we need different xpath for different environment. really time consuming to do this over and over again and really hard to maintain our element locator.

our devs developed the app we're testing in React.

my question simply, why this thing happened and how we work around it? is there any solution?