Android tests won't start. No error message

0
已提問 4 年前檢視次數 178 次
1 個回答
0

Hi:

Thank you for reaching out; sorry for the inconvenience you are having. I was able to look into the logs. From the console, you can download your test run artifacts to take a closer look at the errors. From the logs, the error I am observing is:

org.openqa.selenium.NoSuchElementException: Can&#39;t locate an element by this strategy: By.id: <ID>

The Appium server is starting successfully on the device, which implies that the search method for UI elements on the Android screen is not executing as expected in the test. I suggest reading this post (https://sqa.stackexchange.com/questions/20186/unable-to-locate-element-throwing-a-org-openqa-selenium-nosuchelementexception-i) to mitigate. Some key highlights:

  1. Assert with text or element to ensure you are on expected page/screen
  2. I will suggest to use wait.untill(element.isVisible()) before Click() /Assert()
  3. Have I provided a wrong value for searching the element?

Please let me know if you have any further questions; thanks.

Andy

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南