Java Code Examples for org.openqa.selenium.remote.RemoteWebDriver#findElementsByTagName()
The following examples show how to use
org.openqa.selenium.remote.RemoteWebDriver#findElementsByTagName() .
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: Stepdefs.java From testcontainers-java with MIT License | 5 votes |
@When("^I ask is it possible to search here$") public void iAskIsItPossibleToSearchHere() throws Exception { RemoteWebDriver driver = container.getWebDriver(); driver.get(location); List<WebElement> searchInputs = driver.findElementsByTagName("input"); answer = searchInputs != null && searchInputs.size() > 0 ? "YES" : "NOPE"; }
Example 2
Source File: SeleniumContainerTest.java From testcontainers-java with MIT License | 5 votes |
@Test public void simplePlainSeleniumTest() { RemoteWebDriver driver = chrome.getWebDriver(); driver.get("http://host.testcontainers.internal:" + port + "/foo.html"); List<WebElement> hElement = driver.findElementsByTagName("h"); assertTrue("The h element is found", hElement != null && hElement.size() > 0); }