zebrunner/appium

there is no need to append device details for NoSuchElement exception

Closed this issue · 4 comments

let's don't append [[[...]]] for NoSuchElementError

Encountered internal error running command: An element could not be located on the page using the given search parameters.[[[--udid 00008101-000211420C05001E --name iPhone_12 --sessionId c3c65c7f-be0b-4f92-98b5-38ef59c3034b]]]

we are trying to minimize appium updates. Ideally we want to remove this exception customization at all. The only problem howto return valid device metadata for successful and especially unsuccessful driver sessions

ticket fixed in this pull request
#332

steps for qa

  • build appium from develop branch
  • start any test which tries to find an element that does not exist to get NoSuchElement exception
  • look at the logs and check that device details does not exists [[[...]]]

Verified.

Tested on APPIUM_VERSION: 2.0.12

org.openqa.selenium.NoSuchElementException: 
12:18:06  no such element By.xpath: //*[text()='Get a quote']
12:18:06  For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception