Codeceptjs: "keys" deprecated in WebdriverIO 4.8

Created on 17 May 2017  Â·  4Comments  Â·  Source: codeceptjs/CodeceptJS

What are you trying to achieve?

We use the pressKey() method for interaction with a web form.

What do you get instead?

It works, but we get a lot of deprecation warnings from WebdriverIO.

Provide console output if related. Use --verbose mode 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');
  // [...]
});

Details

webdriverio

All 4 comments

@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

Was this page helpful?
0 / 5 - 0 ratings