I’m migrating an existing Appium + Java automation framework to Mobilewright.
In Appium, we can locate elements relative to other elements using XPath, for example:
// following
//preceding
//parent
//child
How can we achieve the same in Mobilewright?
For example, how can I create locators for:
* Parent element
* Child element
* Following sibling/element
* Preceding sibling/element
Is there a recommended Mobilewright API or locator chaining approach for these relationships?
For example, something conceptually similar to:
screen.getByTestId('parent').getByTestId('child')
or:
screen.getByTestId('element').preceding(...)
screen.getByTestId('element').parent(...)
What is the recommended approach for handling these relationships in Mobilewright?
I’m migrating an existing Appium + Java automation framework to Mobilewright.
In Appium, we can locate elements relative to other elements using XPath, for example:
How can we achieve the same in Mobilewright?
For example, how can I create locators for:
Is there a recommended Mobilewright API or locator chaining approach for these relationships?
For example, something conceptually similar to:
screen.getByTestId('parent').getByTestId('child')or:
What is the recommended approach for handling these relationships in Mobilewright?