org.xwiki.test.ui.po.editor
Class UserPicker.UserElement

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.editor.UserPicker.UserElement
Enclosing class:
UserPicker

public static class UserPicker.UserElement
extends BaseElement


Constructor Summary
UserPicker.UserElement(org.openqa.selenium.WebElement container)
          Creates a new user element that wraps the given WebElement.
 
Method Summary
 void delete()
          Remove this user from the current selection.
 String getAlias()
           
 org.openqa.selenium.WebElement getAvatar()
           
 String getName()
           
 String getText()
           
 void moveBefore(UserPicker.UserElement user)
          Moves this user before the given user using drag and drop.
 void moveMouseOver()
          Moves the mouse over this element.
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPicker.UserElement

public UserPicker.UserElement(org.openqa.selenium.WebElement container)
Creates a new user element that wraps the given WebElement.

Parameters:
container - the element that wraps the user display
Method Detail

getAvatar

public org.openqa.selenium.WebElement getAvatar()
Returns:
the avatar image

getName

public String getName()
Returns:
the full user name

getAlias

public String getAlias()
Returns:
the user alias

getText

public String getText()
Returns:
the text displayed by this element; this is useful when this element is not actually an user but a message like "User not found"

delete

public void delete()
Remove this user from the current selection.


moveMouseOver

public void moveMouseOver()
Moves the mouse over this element.


moveBefore

public void moveBefore(UserPicker.UserElement user)
Moves this user before the given user using drag and drop.

Parameters:
user - the reference user


Copyright © 2004-2013 XWiki. All Rights Reserved.