1

I am doing automation testing using appium, webdriverio, nodejs and I want to set elements value after scrolling, how can I do it? I have already tried MoveTo, touchAction,scrollIntoView methods on webdriverio documentation but unable to do it.

tareq albeesh
  • 1,701
  • 2
  • 10
  • 13
Yonas Alem
  • 11
  • 3

1 Answers1

0

For me works these:

await $('android=new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(new UiSelector().resourceIdMatches(".*:id/new_supplier_icdph_value"))');

await driver.pause(3000);
const elem = await $('~your_accessibility_id')
await elem.setValue('yourValue')
kikanz
  • 1