Relative Content

Tag Archive for javaappiumappium-androidappium-java

Appium findElement not working for UiSelector with instance on second itteration

I have a situation where I am finding an element (the second element with the content-desc="example") and am using the following UiSelector to call findElement(): UiSelector().descriptionContains("example").instance(1). Later, I set the orientation to Landscape and attempt to find the same element. For some reason I am no longer able to find that element on the second try even though I was able to on the first attempt in portrait mode.