Alex1
September 16, 2015, 4:35pm
1
Dear all,
I’m begginner with appium.
I try to test an application.
I have always a problem : An element could not be located on the page using the given search parameters.
I’m using driver.findElementById("");
Could you help me please!
Best regards,
@Alex1 , you need to provide an id, not an empty string.
Alex1
September 21, 2015, 1:35pm
3
Yes, i do like you told me.
WebElement elements=driver.findElementById("com.Mydomain.android.pre:id/declaration");
elements.click();
but the problem that i like to select a list of element in the WebElement elements one by one , but i didn’t succeed.
Could you help me.
Thank you very much!
Best regards!
Alex1
September 22, 2015, 8:36am
5
I’m working with WebElement not MobileElement.
Is it possible to have the same fonctionnality for WebElement?
Thank you!
Alex1
September 22, 2015, 10:12am
6
I succeed to work with WebElement using:
List <|WebElement> elementAlerte=driver.findElements(By.id(“com.MyDomain.android:id/tile_button_img”));
elementAlerte.get(indexAlerte).click();
We should import
import java.util.List;
Thanks for help!