0

I was trying to do

driver.keyDown(webdriver.Key.CONTROL).sendKeys(webdriver.Key.SPACE);

But it says that the method keyDown does not exist! Does anyone know how to do this? Is there a place where i can see webdriverjs api?

Tiago Bértolo
  • 3,874
  • 3
  • 35
  • 53

1 Answers1

0

If you are trying to pass CTRL+SPACE to sendkeys you can use Key.chord. Try this

driver.sendKeys(webdriver.Key.chord(webdriver.Key.CONTROL, webdriver.Key.SPACE))

You can find the webdriver js api documentation here http://seleniumhq.github.io/selenium/docs/api/javascript/

Oscar
  • 96
  • 2
  • 9