コード例 #1
0
 /** $(".selector").val("string"); */
 public static SeleniumQueryObject val(
     SeleniumQueryObject seleniumQueryObject, List<WebElement> elements, String value) {
   for (WebElement element : elements) {
     val(seleniumQueryObject.getWebDriver(), element, value);
   }
   return seleniumQueryObject;
 }
コード例 #2
0
 public static WebElement[] toArray(SeleniumQueryObject seleniumQueryObject) {
   List<WebElement> elements = seleniumQueryObject.get();
   return elements.toArray(new WebElement[elements.size()]);
 }