Disparity of Selector
behavior between Android and iOS
#1554
Labels
P2
Issues not at the top of the work list
package: patrol
Related to the patrol package (native automation, test bundling)
platform: android
Android is affected
platform: ios
iOS is affected
Patrol has the
Selector
andNativeView
classes. They provide cross-platform interaction with the underlying native UI.Currently, there are many differences
Selector
andNativeView
between its behavior on Android and iOS.More about these 2 classes
Selector
On Android,
Selector
s are translated toBySelector
s and/orUiSelector
.On iOS,
Selector
s are translated toXCUIElementQuery
-ies. Sometimes, we construct them usingNSSelector
. They allow for searching using many view properties:identifier
,title
,label
,value
, andplaceholderValue
.NativeView
On Android,
NativeView
s are created fromUiObject2
s.On iOS,
NativeView
s are created fromXCUIElement
s.Problems
Selector.text
is taken into account when searching for viewsSelector
fields, such asresourceId
, are Android-only. That's because theSelector
API predates iOS support.NativeView
fields, such asresourceName
, are Android-only. Cause the same as above.The text was updated successfully, but these errors were encountered: