-1

I'm trying to build automation script with Selenium(Java) + AutoItX. In my script I want to press the ENTER key, this is my code:

AutoItX x = new AutoItX();
    Thread.sleep(3000);
    x.send("{ENTER}");

but it doesn't work.. any idea why?

Pikolo
  • 99
  • 1
  • 3
  • 11

1 Answers1

0

You have to use below code.

x.controlSend(windowTitle, "", mainOutlookClass, "{ENTER}");

WindowTitle = Window Name

mainOutlookClass = Class name of that window, which you can find from AutoIT.