Package org.openqa.selenium

Examples of org.openqa.selenium.By


        // Wait for startButton to be present
        waitForElementVisible(vaadinLocatorById("startButton"));

        String logRow0Id = "Log_row_0";
        By logRow0 = vaadinLocatorById(logRow0Id);

        // Start the test
        vaadinElementById("startButton").click();

        // Wait for push to start. Should take 60s
View Full Code Here


    private void push() throws InterruptedException {
        // Wait for startButton to be present
        waitForElementVisible(vaadinLocatorById("startButton"));

        String logRow0Id = "Log_row_0";
        By logRow0 = vaadinLocatorById(logRow0Id);

        vaadinElementById("startButton").click();
        // Wait for push to start
        waitUntil(ExpectedConditions.textToBePresentInElement(logRow0,
                "Package "));
View Full Code Here

    private void push() throws Exception {
        // Wait for startButton to be present
        waitForElementVisible(vaadinLocatorById("startButton"));

        String logRow0Id = "Log_row_0";
        By logRow0 = vaadinLocatorById(logRow0Id);

        vaadinElementById("startButton").click();
        // Wait for push to start
        waitUntil(ExpectedConditions.textToBePresentInElement(logRow0,
                "Package"));
View Full Code Here

    private void push() throws InterruptedException {
        // Wait for startButton to be present
        waitForElementVisible(vaadinLocatorById("startButton"));

        String logRow0Id = "Log_row_0";
        By logRow0 = vaadinLocatorById(logRow0Id);

        vaadinElementById("startButton").click();
        // Wait for push to start
        waitUntil(ExpectedConditions.textToBePresentInElement(logRow0,
                "Package "));
View Full Code Here

    /*
     * Provide the tab at specified index.
     */
    private TestBenchElement tab(int index) {
        By by = By.className("v-tabsheet-tabitemcell");

        List<WebElement> tabs = getDriver().findElements(by);

        String expected = "Tab " + index;

View Full Code Here

    private final static int DELAY = 10;

    private void assertSheet(int index) {
        String labelCaption = "Tab " + index;

        By id = By.id(TabKeyboardNavigation.labelID(index));
        WebElement labelElement = getDriver().findElement(id);

        waitForElementPresent(id);

        Assert.assertEquals(labelCaption, labelCaption, labelElement.getText());
View Full Code Here

    /*
     * Provide the tab at specified index.
     */
    private TestBenchElement tab(int index) {
        By by = By.className("v-tabsheet-tabitemcell");

        TestBenchElement element = (TestBenchElement) getDriver().findElements(
                by).get(index - 1);

        String expected = "Tab " + index;
View Full Code Here

    /*
     * Provide the tab at specified index.
     */
    private TestBenchElement tab(int index) {
        By by = By.className("v-tabsheet-tabitemcell");

        TestBenchElement element = (TestBenchElement) getDriver().findElements(
                by).get(index - 1);

        String expected = "Tab " + index;
View Full Code Here

    Assert.assertEquals(handles.size(), 2);
    driver.switchTo().window("Web");
    // TODO fix that server side. Accessing a webview currently loading isn't handled ?
    Thread.sleep(1000);

    final By by = By.cssSelector("a");

    long end = System.currentTimeMillis() + 10000;
    WebElement el;
    while (System.currentTimeMillis() < end) {
      try {
View Full Code Here

      return null;
    }
  }

  public void studentClickViewCourse(int row) {
    By link = By.xpath(String.format("//div[@id='studentCourseTable']//table[@id='dataform']//tr[%d]//td[%d]//a[1]", row + 2, 4));
    waitAndClick(link);
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.By

Copyright © 2018 www.massapicom. 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.