Robot framework code not working if the window is minimized | Selenium Forum
M
Posted on 23/08/2016
Robot framework code is not working if the window is minimized
[code:3b35px9u]Robot rb = new Robot();
Thread.sleep(3000);
rb.keyPress(KeyEvent.VK_DOWN);
Thread.sleep(3000);
rb.keyPress(KeyEvent.VK_ENTER);
Thread.sleep(3000);
rb.keyPress(KeyEvent.VK_ENTER);
Thread.sleep(3000);[/code:3b35px9u]

M
Replied on 23/08/2016

for robot framework to work you have to window maximized.


M
Replied on 23/08/2016

Will this work on the remote server if the browser window is maximized but the server window is minimized or if I close the server instance?


M
Replied on 23/08/2016

it should work. but try it in any instance.


M
Replied on 23/08/2016

This is not working on remote server if I keep the browser window maximized there but minimize the remote server window. Any workaround?


M
Replied on 24/08/2016

only work around i can think of is to use "auto it" or sikuli.


M
Replied on 24/08/2016

AutoIt doesnt work as well in the remote session


M
Replied on 24/08/2016

[quote="arora.akhil29@gmail.com":10oku5hr]AutoIt doesnt work as well in the remote session[/quote:10oku5hr]
i know i will not recommend it.
use robot framework and maximized browser.