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, driver, rawElement.getValue()); }
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, driver, elements.getValue()).toList(); }