webdriverio e2e testing with Appium 2 #592
Unanswered
kopax-polyconseil
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's not a perfect solution, but I did this with Webdriverio by getting the element using the predicate in iOS, and then scrolling to change the date or time. const selector = `-ios predicate string:value == "Today"`
const touchAction = [
{ action: 'press', x: 0, y: 150 },
{ action: 'moveTo', x: 0, y: 0 },
'release',
]
$(selector).touchAction(scrollDate) You will need to use a different selector on Android though |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to test my react-native-date-picker on both iOS and Android. For this I need to set accessibility id / acessibility identifier within native app.
This is possible through testID, accessibilityLabel with react-native to set those and run e2e test with webdriver.
However, I do not find how to set the value of the day, month and year and cannot proceed to next screen.
Do you have any e2e testing instruction or recommendation?
Thanks and happy new year !
Beta Was this translation helpful? Give feedback.
All reactions