com.atlassian.confluence.pageobjects.component.form
Class MultiUserPicker

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.form.MultiUserPicker
All Implemented Interfaces:
PageComponent

public class MultiUserPicker
extends ConfluenceAbstractPageComponent


Field Summary
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, frameExecutor, pageBinder, pageElementFinder, timeouts, waiter
 
Constructor Summary
MultiUserPicker(com.atlassian.pageobjects.elements.PageElement container)
           
 
Method Summary
 MultiUserPicker addUser(User user)
          Searches for the given user and adds them by waiting and clicking in the results drop down.
 com.atlassian.pageobjects.elements.query.TimedCondition containsUserValue(User user)
           
 MultiUserPicker search(java.lang.String searchStr)
          Types the given search string into the input field and waits for any results to appear
 MultiUserPicker selectUser(java.lang.String username)
          Waits for the given username to appear in the search results and clicks on the user.
 void waitUntilVisible()
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
getComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiUserPicker

public MultiUserPicker(com.atlassian.pageobjects.elements.PageElement container)
Method Detail

waitUntilVisible

public void waitUntilVisible()

search

public MultiUserPicker search(java.lang.String searchStr)
Types the given search string into the input field and waits for any results to appear


selectUser

public MultiUserPicker selectUser(java.lang.String username)
Waits for the given username to appear in the search results and clicks on the user. This assumes you have called search(String) beforehand.


containsUserValue

public com.atlassian.pageobjects.elements.query.TimedCondition containsUserValue(User user)
Returns:
a TimedCondition to check if the given user is found in the multi user picker input field

addUser

public MultiUserPicker addUser(User user)
Searches for the given user and adds them by waiting and clicking in the results drop down.



Copyright © 2003-2014 Atlassian. All Rights Reserved.