List of usage examples for org.openqa.selenium WebElement clear
void clear();
From source file:org.alfresco.po.share.EditUserPage.java
License:Open Source License
/** * Enter the search text is group finder text box and clicks Search on the new user page. * //from w w w . j av a 2s . c o m * @param user String name * @return UserSearchPage page response */ public HtmlPage searchGroup(final String user) { try { WebElement input = findAndWait(By.cssSelector(GROUP_FINDER_SEARCH_TEXT)); input.clear(); input.sendKeys(user); findAndWait(By.cssSelector(GROUP_SEARCH_BUTTON)).click(); return getCurrentPage(); } catch (TimeoutException e) { } throw new PageException("Not able to perform Group Search."); }
From source file:org.alfresco.po.share.InviteToAlfrescoPage.java
License:Open Source License
/** * Enter email addresses//from w ww . java 2 s. co m * * @param userEmails String[] */ public void inputEmailsForInvitation(String[] userEmails) { if (userEmails == null) { throw new UnsupportedOperationException("userEmail(s) for invitation cannot be null"); } WebElement textArea = findAndWait(EMAILS_TEXTAREA); textArea.clear(); for (String userEmail : userEmails) { if (userEmail.equals("")) { throw new UnsupportedOperationException("userEmail can be empty"); } textArea.sendKeys(userEmail); textArea.sendKeys(Keys.ENTER); } }
From source file:org.alfresco.po.share.InviteToAlfrescoPage.java
License:Open Source License
/** * Enter email message/* www . jav a2 s . com*/ * * @param emailMessage String */ public void inputMessage(String emailMessage) { WebElement input = findAndWait(MESSAGE_TEXTAREA); input.clear(); input.sendKeys(emailMessage); }
From source file:org.alfresco.po.share.NewGroupPage.java
License:Open Source License
private void setIdentifier(String identifier) { if (StringUtils.isEmpty(identifier)) { throw new PageException("Enter value of Identifier"); }//from w ww .ja v a 2 s .c o m WebElement input = findAndWait(By.cssSelector(TEXT_INPUT_IDENTIFIER)); input.clear(); input.sendKeys(identifier); }
From source file:org.alfresco.po.share.NewGroupPage.java
License:Open Source License
private void setDisplayName(String displayName) { if (StringUtils.isEmpty(displayName)) { throw new PageException("Enter value of DisplayName"); }//from w ww . j a va2s .c om WebElement input = findAndWait(By.cssSelector(TEXT_INPUT_DISPLAY_NAME)); input.clear(); input.sendKeys(displayName); }
From source file:org.alfresco.po.share.NewUserPage.java
License:Open Source License
/** * Enter FirstName.// ww w . j a va 2s.co m */ public void inputFirstName(String text) { WebElement input = findAndWait(By.cssSelector(FIRSTNAME)); input.clear(); input.sendKeys(text); }
From source file:org.alfresco.po.share.NewUserPage.java
License:Open Source License
/** * Enter LastName.//from ww w.jav a 2 s. co m */ public void inputLastName(String text) { WebElement input = findAndWait(By.cssSelector(LASTNAME)); input.clear(); input.sendKeys(text); }
From source file:org.alfresco.po.share.NewUserPage.java
License:Open Source License
/** * Enter Email./* w ww . j a va2 s . c o m*/ */ public void inputEmail(String text) { WebElement input = findAndWait(By.cssSelector(EMAIL)); input.clear(); input.sendKeys(text); }
From source file:org.alfresco.po.share.NewUserPage.java
License:Open Source License
/** * Enter Username into username input field. *///from www .j a v a 2 s . co m public void inputUsername(String text) { WebElement input = findAndWait(By.cssSelector(USERNAME)); input.clear(); input.sendKeys(text); }
From source file:org.alfresco.po.share.NewUserPage.java
License:Open Source License
/** * Enter Password.//w w w .j av a 2 s . c om */ public void inputPassword(String text) { WebElement input = findAndWait(By.cssSelector(PASSWORD)); input.clear(); input.sendKeys(text); }