I’m using appium1.21.0 with ios 14.4 emulator on browser stack. I unable set value for the passcode screen.
const ActionHelper = require(’./…/helpers/actionHelpers’);
require(‘chai’).should();
class CreatePasscodePage{
constructor()
{
this.passcode1 = ‘//XCUIElementTypeOther[@name=“passcode entry screen header”]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther’;
}
enterPasscode1(passcode)
{
// ActionHelper.typeText(this.passcode1,passcode)
// console.log(passcodeNo1);
// ActionHelper.setPasscode(this.passcode1,passcode);
//ActionHelper.sendText(this.passcode1,passcodeNo1);
//ActionHelper.enterPasscode(this.passcode1,passcode);
ActionHelper.setValue(this.passcode1,passcode);
}
}
module.exports=CreatePasscodePage;
ActionHelper class:
static setValue(locator,inputText)
{
//$(locator).setValue(inputText);
browser.setValue($(locator),inputText);
}
How can I achieve setvalue or sendkeys in webdriverio, anyone have knowledge about this please help me-Thanks