Search in sources :

Example 6 with FluentWebElement

use of org.seleniumhq.selenium.fluent.FluentWebElement in project selenium_java by sergueik.

the class AngularAndWebDriverTest method basic_elements_chained_call_should_wait_to_grab_the_WebElement_until_a_method_is_called.

/*
	  Ported from protractor/spec/basic/elements_spec.js
	  TODO - many more specs in here
	 */
@Test(enabled = false)
public void basic_elements_chained_call_should_wait_to_grab_the_WebElement_until_a_method_is_called() {
    FluentWebDriver fwd = new FluentWebDriver(driver);
    driver.get("http://localhost:8080/index.html#/conflict");
    FluentWebElement reused = fwd.div(id("baz")).span(ByAngular.binding("item.reusedBinding"));
    reused.getText().shouldBe("Inner: inner");
}
Also used : FluentWebDriver(org.seleniumhq.selenium.fluent.FluentWebDriver) FluentWebElement(org.seleniumhq.selenium.fluent.FluentWebElement) Test(org.testng.annotations.Test)

Aggregations

FluentWebElement (org.seleniumhq.selenium.fluent.FluentWebElement)6 FluentWebDriver (org.seleniumhq.selenium.fluent.FluentWebDriver)4 Test (org.testng.annotations.Test)4 Radiator (com.paulhammant.buildradiator.radiator.model.Radiator)1 HashMap (java.util.HashMap)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1 Test (org.junit.Test)1 Actions (org.openqa.selenium.interactions.Actions)1