Closed LayMuiToh closed 5 years ago
this is resolved by passing the driver as parameter to the TouchAction like this:let el = await driver.elementByAccessibilityId('HoldToTalk'); let action = new wd.TouchAction(driver); action.longPress({el}); await action.perform(); await action.release();
Great, thanks for clarifying!
my code is as follow: let el = await driver.elementByAccessibilityId('HoldToTalk'); let action = new wd.TouchAction(); action.longPress(el); await action.perform();
When I run the test, I got this error: Invalid element or el field passed
Message Input
Jot something down