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
Post a Comment