We use the pressKey() method for interaction with a web form.
It works, but we get a lot of deprecation warnings from WebdriverIO.
Provide console output if related. Use
--verbosemode for more details.
• I press key "Enter"
WARNING: the "keys" command will be depcrecated soon. Please use a different command in order to avoid failures in your test after updating WebdriverIO.
Provide test source code if related
Scenario('...', (I) => {
// [...]
I.pressKey('Enter');
// [...]
});
@christian-bromann is there any reason keys are deprecated?
What can be used instead? Thanks
@DavertMik it is not part of the Webdriver spec and not supported by latest Firefox versions. This is why we added the deprecation warning. Not sure yet what do use instead. WebdriverIO will keep the command as long as most of the drivers still support it.
I understand. Latest firefox versions are the real pain :(
Thanks for clarifying