Example usage for org.openqa.selenium.support.ui ExpectedConditions attributeToBe

List of usage examples for org.openqa.selenium.support.ui ExpectedConditions attributeToBe

Introduction

In this page you can find the example usage for org.openqa.selenium.support.ui ExpectedConditions attributeToBe.

Prototype

public static ExpectedCondition<Boolean> attributeToBe(final WebElement element, final String attribute,
        final String value) 

Source Link

Document

An expectation for checking given WebElement has attribute with a specific value

Usage

From source file:io.openvidu.test.e2e.OpenViduTestAppE2eTest.java

License:Apache License

private void listEmptyRecordings() {
    // List existing recordings (empty)
    user.getDriver().findElement(By.id("list-recording-btn")).click();
    user.getWaiter().until(/* w ww .j  a va 2 s .c  o m*/
            ExpectedConditions.attributeToBe(By.id("api-response-text-area"), "value", "Recording list []"));
}