@Massi_mass i see in txt file NOT screen that you are talking about. This is not screen from your screenshot. Does test end BEFORE you actually reach screen you are talking about with red bar on bottom and images?
try to add sleep to check this:
try {
Thread.sleep(10000); // 10 sec sleep to wait...
} catch (Exception e) {
// ignore
}
// now try to find Account element
List<WebElement> elements = driver.findElements(MobileBy.id("navigation_account")); // package name NOT needed
System.out.println("elements size: " + elements.size());
try {
Thread.sleep(10000); // 10 sec sleep and try again to see something
} catch (Exception e) {
// ignore
}
elements = driver.findElements(MobileBy.id("navigation_account")); // package name NOT needed
System.out.println("elements size: " + elements.size());
if (!elements.isEmpty()) {
MobileElement el = (MobileElement) elements.get(0);
System.out.println("element x: " + el.getCenter().x + ", y: " + el.getCenter().y);
TapOptions tapOptions = new TapOptions().withElement(ElementOption.element(el));
new TouchAction(driver).tap(tapOptions).perform();
}