I am trying to push file (ex. photo) to android device(Android Emulator API 28) with webdriver js.
My dependencies:
“dependencies”: {
“chai”: “^4.3.4”,
“mocha”: “^8.4.0”,
“selenium-webdriver”: “^4.0.0-beta.3”
}
Code:
await driver.pushFileToDevice(‘sdcard/Download’, ‘QXJlIHlvdXIgYmVlcnMgb2theT8=’);
Error:
TypeError: driver.pushFileToDevice is not a function
How it can be?