public class Selectors
extends java.lang.Object
| Constructor and Description |
|---|
Selectors() |
| Modifier and Type | Method and Description |
|---|---|
static org.openqa.selenium.By |
byText(java.lang.String elementText)
Find element HAVING given text (exactly this text)
|
static org.openqa.selenium.By |
withText(java.lang.String elementText)
Find element CONTAINING given text (as a substring)
|
public static org.openqa.selenium.By withText(java.lang.String elementText)
elementText - Text to search inside elementpublic static org.openqa.selenium.By byText(java.lang.String elementText)
elementText - Text that searched element should have