You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nataliakoval edited this page Feb 12, 2015
·
7 revisions
QtWebDriver supports the following custom capabilities
browserStartWindow
QtWebDriver will search all existing top-level windows and attach to the one with the matching title.
If * is specified then the first found window will be picked.
See View Selection.
browserClass
QtWebDriver will create a window from the specified classname.
maximize
QtWebDriver will resize the window to its maximum size
reuseUI
If true, the starting QtWebDriver session will terminate any pre-existing session without closing the opened windows.
e.g:
DesiredCapabilitiescap = newDesiredCapabilities();
//specify reuseUI to have WebDriver terminate any previous session and reuse its windowscap.setCapability("reuseUI", true);
//specify to select the first found windowcap.setCapability("browserStartWindow", "*");
wd = newRemoteWebDriver(newURL("http://localhost:9517"), cap);
windowsize
QtWebDriver will resize the window to the specified size, as a string (e.g. - "600, 600")
windowposition
QtWebDriver will position the window to the specified position, as a string (e.g. - "80, 60")