findElement shows an error How can I fix it

It is just telling you it could not find the element on the screen…
You probably gave it an incorrect locator/selector - make sure you give it the correct ones and that you can manually find the element via appium inspector.

Yes, I found correct element using Appium inspector but after this it gave me an error.

Hi @Junaid_Shabbir1

driver.findElement(AppiumBy.accessibilityId(“Afroz ipad3”))).click();

Try using
AppiumBy.id if you are working on mobile native app.
name
accessibility
xpath

driver.findelement(By.id("")).click(); for webBrowser this works
name
xpath
cssSelector

1 Like

try to play with it, use other locator and selectors…
Use AppiumBy as well, should work better.