thebrowsercompany / swift-webdriver

A Swift library for communicating with WebDriver (Appium/WinAppDriver) endpoints
BSD 3-Clause "New" or "Revised" License
100 stars 3 forks source link

Store element's found method #149

Closed vinocher-bc closed 4 months ago

vinocher-bc commented 4 months ago

Store element's found method values, so it can be used to check if the element still exists. This allows a method like element.waitForNonExistence() to be implemented, to handle cases where the id may be reused by the Accessibility provider after an element is deleted.

jeffdav commented 4 months ago

I agree this feels like the wrong solution. We've discussed implementing XCUITest as a layer on top of this, which is probably the right solution.

vinocher-bc commented 4 months ago
  • There could be any number of ways to look up elements that don't fit within the foundUsing/foundUsingValue model, for example asking for the currently focused element, or asking for descendants of an element.

Yes, this approach has holes, and will be abandoned.