org.openqa.selenium.internal.FindsById Java Examples
The following examples show how to use
org.openqa.selenium.internal.FindsById.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebDriverUtilTests.java From vividus with Apache License 2.0 | 5 votes |
@Test void testWrappedWebDriverUnwrap() { RemoteWebDriver remoteWebDriver = mock(RemoteWebDriver.class); FindsById actual = WebDriverUtil.unwrap(new TextFormattingWebDriver(remoteWebDriver), FindsById.class); assertEquals(remoteWebDriver, actual); }
Example #2
Source File: WebDriverUtilTests.java From vividus with Apache License 2.0 | 5 votes |
@Test void testNonWrappedWebDriverUnwrap() { RemoteWebDriver remoteWebDriver = mock(RemoteWebDriver.class); FindsById actual = WebDriverUtil.unwrap(remoteWebDriver, FindsById.class); assertEquals(remoteWebDriver, actual); }
Example #3
Source File: WebDriverUtilTests.java From vividus with Apache License 2.0 | 4 votes |
@Test void testWrappedWebDriverUnwrapButNoCast() { assertThrows(ClassCastException.class, () -> WebDriverUtil.unwrap(new TextFormattingWebDriver(mock(WebDriver.class)), FindsById.class)); }
Example #4
Source File: WebDriverWrapper.java From bobcat with Apache License 2.0 | 4 votes |
/** * Finds element by id. */ @Override public WebElement findElementById(String id) { return ((FindsById) super.getWrappedDriver()).findElementById(id); }
Example #5
Source File: WebDriverWrapper.java From bobcat with Apache License 2.0 | 4 votes |
/** * Finds elements by id. */ @Override public List<WebElement> findElementsById(String id) { return ((FindsById) super.getWrappedDriver()).findElementsById(id); }
Example #6
Source File: TargetedWebElement.java From darcy-webdriver with GNU General Public License v3.0 | 4 votes |
@Override public WebElement findElementById(String using) { return targetedWebElement(((FindsById) element()).findElementById(using)); }
Example #7
Source File: TargetedWebElement.java From darcy-webdriver with GNU General Public License v3.0 | 4 votes |
@Override public List<WebElement> findElementsById(String using) { return targetedWebElements(((FindsById) element()).findElementsById(using)); }
Example #8
Source File: ForwardingTargetedWebDriver.java From darcy-webdriver with GNU General Public License v3.0 | 4 votes |
@Override public WebElement findElementById(String using) { return targetedWebElement(((FindsById) driver()).findElementById(using)); }
Example #9
Source File: ForwardingTargetedWebDriver.java From darcy-webdriver with GNU General Public License v3.0 | 4 votes |
@Override public List<WebElement> findElementsById(String using) { return targetedWebElements(((FindsById) driver()).findElementsById(using)); }