Description
SeLion Version
2.0.0-SNAPSHOT
Component
SeLion & SeLion-appium-provider
Expected Behavior
SeLion platform WebElements to be located via appium MobileBy types.
Actual Behavior
SeLion platform WebElements cannot be located by appium MobileBy types.
Steps to Reproduce
The bridge drivers allows findElementBy(By by)
override, however limitation still exists on the set of By subclasses that can be passed in. HtmlElementUtils.resolveByType(String locator)
cannot be overridden.
https://github.com/paypal/SeLion/blob/develop/client/src/main/java/com/paypal/selion/platform/mobile/ios/UIAElement.java#L67
https://github.com/paypal/SeLion/blob/develop/client/src/main/java/com/paypal/selion/platform/mobile/android/UiObject.java#L50
Proposal:
-
Add
By resolveByType(String locator);
method definition in SeLionAndroidBridgeDriver and SeLionIOSBridgeDriver -
Appium ios/android providers can resolve MobileBy types in addition to using existing HtmlElementUtils.
-
Other providers can continue leveraging HtmlElementUtils.