Examples of findElements()


Examples of daveayan.gherkinsalad.components.core.Element.findElements()

  }

  public void select_option_if_enabled(String option) {
    Element element = root_element();
    if (this.isEnabled()) {
      Elements options = element.findElements(By.tagName("option"));
      Element option_to_select = options.findFirstElementWithText(option);
      option_to_select.click();
    }
  }
View Full Code Here

Examples of net.thucydides.core.annotations.locators.SmartAjaxElementLocator.findElements()

    @Test(timeout = 5000)
    public void should_find_elements_immediately_if_a_previous_step_has_failed() {
        SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 5);
        StepEventBus.getEventBus().stepFailed(failure);
        locator.findElements();
    }

    @Rule
    public ExpectedException expectedException = ExpectedException.none();
View Full Code Here

Examples of org.openqa.selenium.By.findElements()

        when(context.findElementByXPath(".//*[@foo]")).thenReturn(we);
        WebElement bar = fooBar.findElement(context);
        assertThat(bar, is(we));

        when(context.findElementsByXPath(".//*[@foo]")).thenReturn(newArrayList(we, we2));
        List<WebElement> bars = fooBar.findElements(context);
        assertThat(bars.get(0), is(we));

    }

    @Test
View Full Code Here

Examples of org.openqa.selenium.SearchContext.findElements()

  }

  @Override
  public List<WebElement> getActualElements() {
    SearchContext searchContext = parent == null ? getWebDriver() : parent;
    return searchContext.findElements(selector);
  }

  @Override
  public String description() {
    return parent == null ? selector.toString() : Describe.shortly(parent) + "/" + Describe.shortly(selector);
View Full Code Here

Examples of org.openqa.selenium.WebDriver.findElements()

        try {
            driver.manage();
            driver.navigate();
            driver.switchTo();
            driver.findElement(By.className(""));
            driver.findElements(By.className(""));
            driver.getWindowHandles();

            options.ime();
            options.logs();
            options.timeouts();
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

    public List<WebElement> getExistingTemplatesLinks()
    {
        WebElement availableTemplatesHeader = getDriver().findElement(By.id("HAvailableTemplateProviders"));
        // a bit unreliable here, but it's the best I can do
        WebElement ul = availableTemplatesHeader.findElement(By.xpath("following-sibling::node()"));
        return ul.findElements(By.tagName("a"));
    }
}
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

    }

    private List<WebElement> getAllRows() {
        WebElement table = vaadinElement("/VVerticalLayout[0]/VVerticalLayout[0]/VScrollTable[0]");
        return table.findElements(By.cssSelector(".v-table-table tr"));

    }
}
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

    @Test
    public void check_column_classes() throws InterruptedException {
        browser.get(contextPath.toExternalForm());

        WebElement body = browser.findElement(By.id("myForm:edt:body"));
        List<WebElement> cells = body.findElements(By.cssSelector("#myForm\\:edt\\:0\\:n td"));

        Assert.assertTrue(cells.get(0).getAttribute("class").contains("c1"));
        Assert.assertTrue(cells.get(0).getAttribute("class").contains("d1"));
        Assert.assertTrue(cells.get(1).getAttribute("class").contains("c2"));
        Assert.assertTrue(cells.get(1).getAttribute("class").contains("d2"));
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

        browser.get(contextPath.toExternalForm());

        browser.findElements(By.className("rf-edt-flt-i"));

        WebElement tableHeader = browser.findElement(By.className("rf-edt-hdr"));
        List<WebElement> column2BuiltinFilter = tableHeader.findElements(By.cssSelector(".rf-edt-c-column2 .rf-edt-flt-i"));
        Assert.assertEquals("Built-in filter for column2 should be present", 1, column2BuiltinFilter.size());
        List<WebElement> column3BuiltinFilter = tableHeader.findElements(By.cssSelector(".rf-edt-c-column3 .rf-edt-flt-i"));
        Assert.assertEquals("Built-in filter for column3 is should not be present", 0, column3BuiltinFilter.size());
    }
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

        browser.findElements(By.className("rf-edt-flt-i"));

        WebElement tableHeader = browser.findElement(By.className("rf-edt-hdr"));
        List<WebElement> column2BuiltinFilter = tableHeader.findElements(By.cssSelector(".rf-edt-c-column2 .rf-edt-flt-i"));
        Assert.assertEquals("Built-in filter for column2 should be present", 1, column2BuiltinFilter.size());
        List<WebElement> column3BuiltinFilter = tableHeader.findElements(By.cssSelector(".rf-edt-c-column3 .rf-edt-flt-i"));
        Assert.assertEquals("Built-in filter for column3 is should not be present", 0, column3BuiltinFilter.size());
    }

    @Test
    public void check_filter_is_cleared() throws InterruptedException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.