Hi there,
I did not want to open another topic, so I'm writing here the problem:
it seems that if I use the annotations it will not find the element, whilst using the classic driver.findElement(By.id("id from Localizable.strings"));
the element will be found.
The strange issue happens on a registration screen for iOS where we have to test some edit text fields....However the buttons are found on the other screens ...
This is what we have:
@iOSFindAll({@iOSFindBy(id = "register.firstName.placeholder"), @iOSFindBy(name = "First Name")})
private MobileElement etFirstName;
.......and this will throw the following exception: org.openqa.selenium.NoSuchElementException: Cann't locate an element by this strategy: By.all({By.id: register.firstName.placeholder,By.name: First Name})
I am also invoking
PageFactory.initElements(new AppiumFieldDecorator(driver, 10, TimeUnit.SECONDS), this);
but the issue is the same.
when using
driver.findElement(By.id("register.firstName.placeholder")).sendKeys("blabla");
the editText field is found and the test continues.
Is there a rendering issue with the elements when using annotations?