REST call for bringing browser to foreground via selenium web driver -


i using selenium web driver automate browser. want bring browser foreground if in background or minimized.

for minimized state, maximize rest call running fine. , bring browser foreground

post /session/:sessionid/window/:windowhandle/maximize 

but if browser maximized , in background, fails.

their call focus, sets focus internally, , not bring browser front.

i didn't find rest call brings browser foreground.

using jw protocol:

store window handle first in variable, , use go window later on.

//store current window handle

string currentwindowhandle = this.webdriver.getwindowhandle();

you should able with

driver.switchto().window("//name of window");

and bring whatever window want focus.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -