IsProxyable isProxyable = new IsProxyable();
// when
WebDriver driver = Mockito.mock(WebDriver.class, isProxyable);
Options options = mock(Options.class, isProxyable);
TargetLocator targetLocator = mock(TargetLocator.class, isProxyable);
ImeHandler ime = mock(ImeHandler.class, isProxyable);
Timeouts timeouts = mock(Timeouts.class, isProxyable);
// then
try {
driver.manage();
driver.navigate();
driver.switchTo();
driver.findElement(By.className(""));
driver.findElements(By.className(""));
driver.getWindowHandles();
options.ime();
options.logs();
options.timeouts();
options.window();
options.getCookies();
targetLocator.activeElement();
targetLocator.alert();
targetLocator.defaultContent();
targetLocator.frame(0);
targetLocator.frame("name");
targetLocator.frame(mock(WebElement.class));
targetLocator.window("name");
ime.getAvailableEngines();
timeouts.implicitlyWait(1L, TimeUnit.MICROSECONDS);
timeouts.setScriptTimeout(1L, TimeUnit.MICROSECONDS);