下面列出了怎么用org.openqa.selenium.internal.WrapsDriver的API类实例代码及写法,或者点击链接到github查看源代码。
@Test
public void shouldWrapDriver() {
Browser browser = new WebDriverBrowser(mock(TargetedWebDriver.class),
new StubWebDriverParentContext(), new StubWebDriverElementContext());
assertThat(browser, instanceOf(WrapsDriver.class));
}