com.atlassian.jira.webtest.framework.impl.selenium.component.fc
Class SeleniumLozenge

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
              extended by com.atlassian.jira.webtest.framework.impl.selenium.core.component.AbstractSeleniumComponent<FrotherControl<?,?,?>>
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.component.fc.SeleniumLozenge
All Implemented Interfaces:
FcLozenge, Component<FrotherControl<?,?,?>>, ValueHolder, Localizable, PageObject

public class SeleniumLozenge
extends AbstractSeleniumComponent<FrotherControl<?,?,?>>
implements FcLozenge

Selenium implementation of FcLozenge.

Author:
Dariusz Kordonski

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
SeleniumLozenge(String label, FrotherControl<?,?,?> parent, SeleniumContext context)
           
 
Method Summary
protected  SeleniumLocator detector()
          Main locator of this page object.
 TimedCondition isNotSelected()
          Check if this lozenge is not selected.
 TimedCondition isSelected()
          Check if this lozenge is selected (focused on).
 Locator locator()
          Locator unambiguously locating this page object.
 void removeByClick()
          Click on the 'x' icon on the lozenge to remove it.
 TimedQuery<String> value()
          Get this component's current value
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.component.AbstractSeleniumComponent
parent
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
isReady
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Constructor Detail

SeleniumLozenge

public SeleniumLozenge(String label,
                       FrotherControl<?,?,?> parent,
                       SeleniumContext context)
Method Detail

locator

public Locator locator()
Description copied from interface: Localizable
Locator unambiguously locating this page object.

Specified by:
locator in interface Localizable
Returns:
locator

detector

protected SeleniumLocator detector()
Description copied from class: AbstractLocatorBasedPageObject
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Specified by:
detector in class AbstractLocatorBasedPageObject
Returns:
main locator of this page object

value

public TimedQuery<String> value()
Description copied from interface: ValueHolder
Get this component's current value

Specified by:
value in interface ValueHolder
Returns:
query for the current value of this component

isSelected

public TimedCondition isSelected()
Description copied from interface: FcLozenge
Check if this lozenge is selected (focused on). This may happen via keyboard operations (backspace key).

Specified by:
isSelected in interface FcLozenge
Returns:
timed condition verifying if this lozenge is focused on

isNotSelected

public TimedCondition isNotSelected()
Description copied from interface: FcLozenge
Check if this lozenge is not selected.

Specified by:
isNotSelected in interface FcLozenge
Returns:
timed condition verifying if this lozenge is not focused on
See Also:
FcLozenge.isSelected()

removeByClick

public void removeByClick()
Description copied from interface: FcLozenge
Click on the 'x' icon on the lozenge to remove it.

Specified by:
removeByClick in interface FcLozenge


Copyright © 2002-2013 Atlassian. All Rights Reserved.