Search code examples
javascriptnode.jsselenium-webdriverwebdriver-io

How to press Ctrl+Shift+Spacebar in WebdriverIO?


So, the question is how to send keys combination Ctrl+Shift+Spacebar to Chrome under webdriverIO framework?

Have tried

browser.keys(['Control', 'Shift', ' ']) 

but hasn't worked well. Any ideas will be appreciated.


Solution

  • Use the keys method to send a sequence of keystrokes with the following values ["Control", "Shift", "Space"].

    You’ll find all supported characters here

    So, it should be:

    browser.keys(["Control", "Shift", "Space"]);