public void rotate(ScreenOrientation orientation) { execute(DriverCommand.SET_SCREEN_ORIENTATION, ImmutableMap.of("orientation", orientation)); }
public void setOnline(boolean online) throws WebDriverException { execute(DriverCommand.SET_BROWSER_ONLINE, ImmutableMap.of("state", online)); }
public boolean isOnline() { return (Boolean) execute(DriverCommand.IS_BROWSER_ONLINE).getValue(); }
public <X> X getScreenshotAs(OutputType<X> target) throws WebDriverException { String base64Png = execute(DriverCommand.SCREENSHOT).getValue().toString(); return target.convertFromBase64Png(base64Png); }
public ScreenOrientation getOrientation() { return ScreenOrientation.valueOf( (String) execute(DriverCommand.GET_SCREEN_ORIENTATION).getValue()); }
public AppCacheStatus getStatus() { String status = (String) execute(DriverCommand.GET_APP_CACHE_STATUS).getValue(); return AppCacheStatus.getEnum(status); } }