List of usage examples for org.openqa.selenium.support.pagefactory AjaxElementLocator findElement
@Override
public WebElement findElement()
From source file:com.surevine.alfresco.space.webdriver.DocumentLibraryPage.java
License:Open Source License
public WebElement getDocumentLink(String string) { Field f = null;// ww w. jav a 2s . c om try { f = DocumentLibraryPage.class.getDeclaredField("docLink"); } catch (SecurityException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (NoSuchFieldException e) { // TODO Auto-generated catch block e.printStackTrace(); } AjaxElementLocator ael = new AjaxElementLocator(driver, f, 15); return (ael.findElement()); }