public WebElement findElement(By by) { return new Finder(lib, this, null).findElement(by); }
public List<WebElement> findElements(By by) { return new Finder(lib, this, null).findElements(by); }
public WebElement findElementByClassName(String using) { if (using == null) throw new IllegalArgumentException("Cannot find elements when the class name expression is null."); if (using.matches(".*\\s+.*")) { throw new IllegalLocatorException( "Compound class names are not supported. Consider searching for one class name and filtering the results."); } PointerByReference rawElement = new PointerByReference(); int result = lib.wdFindElementByClassName(driver, element, new WString(using), rawElement); handleErrorCode("id", using, result); return new InternetExplorerElement(lib, parent, rawElement.getValue()); }
public List<WebElement> findElementsByClassName(String using) { if (using == null) throw new IllegalArgumentException("Cannot find elements when the class name expression is null."); if (using.matches(".*\\s+.*")) { throw new IllegalLocatorException( "Compound class names are not supported. Consider searching for one class name and filtering the results."); } PointerByReference elements = new PointerByReference(); int result = lib.wdFindElementsByClassName(driver, element, new WString(using), elements); handleErrorCode("id", using, result); return new ElementCollection(lib, parent, elements.getValue()).toList(); }
public WebElement findElementById(String using) { PointerByReference rawElement = new PointerByReference(); int result = lib.wdFindElementById(driver, element, new WString(using), rawElement); handleErrorCode("id", using, result); return new InternetExplorerElement(lib, parent, rawElement.getValue()); }
public WebElement findElement(By by) { return new Finder(lib, parent, element).findElement(by); }
public List<WebElement> findElements(By by) { return new Finder(lib, parent, element).findElements(by); }
public WebElement findElementByPartialLinkText(String using) { PointerByReference rawElement = new PointerByReference(); int result = lib.wdFindElementByPartialLinkText(driver, element, new WString(using), rawElement); handleErrorCode("link text", using, result); return new InternetExplorerElement(lib, parent, rawElement.getValue()); }
public WebElement findElementByLinkText(String using) { PointerByReference rawElement = new PointerByReference(); int result = lib.wdFindElementByLinkText(driver, element, new WString(using), rawElement); handleErrorCode("link text", using, result); return new InternetExplorerElement(lib, parent, rawElement.getValue()); }
public WebElement findElementByTagName(String using) { PointerByReference rawElement = new PointerByReference(); int result = lib.wdFindElementByTagName(driver, element, new WString(using), rawElement); handleErrorCode("xpath", using, result); return new InternetExplorerElement(lib, parent, rawElement.getValue()); }
public WebElement findElementByName(String using) { PointerByReference rawElement = new PointerByReference(); int result = lib.wdFindElementByName(driver, element, new WString(using), rawElement); handleErrorCode("name", using, result); return new InternetExplorerElement(lib, parent, rawElement.getValue()); }
public WebElement findElementByXPath(String using) { PointerByReference rawElement = new PointerByReference(); int result = lib.wdFindElementByXPath(driver, element, new WString(using), rawElement); handleErrorCode("xpath", using, result); return new InternetExplorerElement(lib, parent, rawElement.getValue()); }
public List<WebElement> findElementsByTagName(String using) { PointerByReference elements = new PointerByReference(); int result = lib.wdFindElementsByTagName(driver, element, new WString(using), elements); handleErrorCode("tag name", using, result); return new ElementCollection(lib, parent, elements.getValue()).toList(); }
public List<WebElement> findElementsByLinkText(String using) { PointerByReference elements = new PointerByReference(); int result = lib.wdFindElementsByLinkText(driver, element, new WString(using), elements); handleErrorCode("link text", using, result); return new ElementCollection(lib, parent, elements.getValue()).toList(); }
public List<WebElement> findElementsById(String using) { PointerByReference elements = new PointerByReference(); int result = lib.wdFindElementsById(driver, element, new WString(using), elements); handleErrorCode("id", using, result); return new ElementCollection(lib, parent, elements.getValue()).toList(); }
public List<WebElement> findElementsByPartialLinkText(String using) { PointerByReference elements = new PointerByReference(); int result = lib.wdFindElementsByPartialLinkText(driver, element, new WString(using), elements); handleErrorCode("link text", using, result); return new ElementCollection(lib, parent, elements.getValue()).toList(); } public WebElement findElementByName(String using) {
public List<WebElement> findElementsByName(String using) { PointerByReference elements = new PointerByReference(); int result = lib.wdFindElementsByName(driver, element, new WString(using), elements); handleErrorCode("name", using, result); return new ElementCollection(lib, parent, elements.getValue()).toList(); }
public List<WebElement> findElementsByXPath(String using) { PointerByReference elements = new PointerByReference(); int result = lib.wdFindElementsByXPath(driver, element, new WString(using), elements); handleErrorCode("xpath", using, result); return new ElementCollection(lib, parent, elements.getValue()).toList(); }