An element could not be located on the page using the given search parameters

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.

Yes, i do like you told me.:smile:

    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!

The problem is the call you are making, findElementById. You should call findElementsById
http://appium.github.io/java-client/io/appium/java_client/MobileElement.html#findElementsById(java.lang.String)

I’m working with WebElement not MobileElement.

Is it possible to have the same fonctionnality for WebElement?

Thank you!

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 :smile:
import java.util.List;

Thanks for help!