Package org.openqa.selenium.support.ui

Examples of org.openqa.selenium.support.ui.Select


            .element(page.getLoggingArea()).text().equalTo("");
    }

    @Test
    public void testLogDebug() {
        Select select = new Select(page.getSeveritySelect());
        select.selectByIndex(LogPage.Severity.DEBUG.getIndex());
        page.getSubmit().click();
        Graphene
            .waitAjax()
            .until(
                "After setting severity to <debug> and submitting, the logging area should contain a message with severity <debug>.")
View Full Code Here


            .element(page.getLoggingArea()).text().contains("info");
    }

    @Test
    public void testLogError() {
        Select select = new Select(page.getSeveritySelect());
        select.selectByIndex(LogPage.Severity.ERROR.getIndex());
        page.getSubmit().click();
        Graphene.waitAjax()
            .until("After setting severity to <error> and submitting, the logging area should contain no message.")
            .element(page.getLoggingArea()).text().equalTo("");
    }
View Full Code Here

            .element(page.getLoggingArea()).text().equalTo("");
    }

    @Test
    public void testLogInfo() throws InterruptedException {
        Select select = new Select(page.getSeveritySelect());
        select.selectByIndex(LogPage.Severity.INFO.getIndex());
        page.getSubmit().click();
        Thread.sleep(400); // workaround till ARQGRA-259 is resolved
        Graphene
            .waitAjax()
            .until(
View Full Code Here

            .element(page.getLoggingArea()).text().contains("info");
    }

    @Test
    public void testLogWarn() {
        Select select = new Select(page.getSeveritySelect());
        select.selectByIndex(LogPage.Severity.WARN.getIndex());
        page.getSubmit().click();
        Graphene.waitAjax()
            .until("After setting severity to <warn> and submitting, the logging area should contain no message.")
            .element(page.getLoggingArea()).text().equalTo("");
    }
View Full Code Here

    return getDriver().findElement(locator).getAttribute("value");
  }

  public void selectDropdownByValue(By locator, String value) {
    this.waitForElementPresent(locator);
    Select select = new Select(getDriver().findElement(locator));
    justWait();
    select.selectByValue(value);
    justWait();
  }
View Full Code Here

    select.selectByValue(value);
    justWait();
  }

  public String getDropdownSelectedValue(By locator) {
    Select select = new Select(getDriver().findElement(locator));
    return select.getFirstSelectedOption().getAttribute("value");
  }
View Full Code Here

  public static String getElementValue(By locator) {
    return driver.findElement(locator).getAttribute("value");
  }

  public static void selectDropdownByValue(By locator, String value) {
    Select select = new Select(driver.findElement(locator));
    justWait();
    select.selectByValue(value);
  }
View Full Code Here

    justWait();
    select.selectByValue(value);
  }

  public static String getDropdownSelectedValue(By locator) {
    Select select = new Select(driver.findElement(locator));
    return select.getFirstSelectedOption().getAttribute("value");
  }
View Full Code Here

  public static String getElementValue(By locator) {
    return driver.findElement(locator).getAttribute("value");
  }

  public static void selectDropdownByValue(By locator, String value) {
    Select select = new Select(driver.findElement(locator));
    select.selectByValue(value);
  }
View Full Code Here

    Select select = new Select(driver.findElement(locator));
    select.selectByValue(value);
  }

  public static String getDropdownSelectedValue(By locator) {
    Select select = new Select(driver.findElement(locator));
    return select.getFirstSelectedOption().getAttribute("value");
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.support.ui.Select

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.