|
|
|
@ -326,11 +326,27 @@ public class TabDriver implements JavascriptExecutor {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public synchronized List<WebElement> findAllByCss(String css) {
|
|
|
|
|
try {
|
|
|
|
|
return findElements(By.cssSelector(css));
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return List.of();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public synchronized List<WebElement> findAllByCss(WebElement context, String css) {
|
|
|
|
|
try {
|
|
|
|
|
return context.findElements(By.cssSelector(css));
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return List.of();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Any-Match.
|
|
|
|
|
*/
|
|
|
|
|
public synchronized WebElement getByFieldValue(String type, String field, String value) {
|
|
|
|
|
return findElement(By.cssSelector(type + "[" + field + "*='" + value + "']"));
|
|
|
|
|
return findElement(By.cssSelector(type + '[' + field + "*='" + value + "']"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public synchronized void clickByFieldValue(String type, String field, String value) {
|
|
|
|
|