Chrome Zoom out using sendKeys "CONTROL" + "-"

Hi, I am trying to simulate a keyboard keypress “CONTROL” + “-”
I tried, WebUI.sendKeys(findTestObject(null), Keys.chord(Keys.CONTROL, ‘-’))

But this does not work.

Can anyone help?
Thank you!

what are you doing here?

Hi @kazurayam, i did not put an object inside findTestObject because i want to use the Ctrl key and “+” or “-” combos to increase or decrease the page magnification of my Chrome browser and not on a specific object.

You should rather use java.awt.Robot class

Hi, @kazurayam I tried the code you sent and it work!. Thanks a lot