I am stuck at one issue.
I click on one button and then new screen open.
i am verifying one element and using appium i am getting its name as "Close".
using uiautomatoreviewer testCase.getMobileDriver().findElement(By.xpath("//UIAButton[@name='Close']"))isDisplayed();
Using above line i am verifying.
Then I Click on another Button and again same Element named as Close using uiautomatorviewer, when i try to verify that element it is failing due to same name of button is also present in previous screen.
Do you have any solution how to ignore previous screen mapping of same name in current screen mapping?