1

I have a trouble in my tests with this code

browser.actions().sendKeys(Key.chord(Key.CONTROL, '?')).perform();

But it's work with another symbol. For example:

browser.actions().sendKeys(Key.chord(Key.CONTROL, 'a')).perform();

How can I use browser.actions().sendKeys in protractor with "?" symbol?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195

1 Answers1

1

Assuming you want to open the browser's Help->Search, should not it be:

browser.actions().sendKeys(Key.chord(Key.CONTROL, Key.SHIFT, '/')).perform();

Note that I'm not sure if would be able to control the search input and send keys to it, since, I think it might be out of scope of the selenium webdriver.

And FYI, if you would want it be cross-platform, see:

Community
  • 1
  • 1
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195