This is my current code:
//Click on the button that will redirect user to App #2
driver.findElement(By.id(appButton1)).click();
//User is now in App #2
//Make Asserts
Assert.assertEquals(driver.findElement(By.id(sometext)).getText(), "Test");
//Click on the button that will return the user to App #1
driver.findElement(By.id(appButton2)).click();
//User in now back in App #1
//Make Asserts
Assert.assertEquals(driver.findElement(By.id(Parameters.SCC_LINE2)).getText(), "Test");
The problem is that the script does not recognize the UI elements in App #2. Should I have in my code a line that will switch to the other app?
Thanks.