com.atlassian.jira.webtest.framework.impl.selenium.core.component
Class SeleniumCheckbox

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.SeleniumCheckbox
All Implemented Interfaces:
Checkbox, Localizable, PageObject

public class SeleniumCheckbox
extends AbstractLocatorBasedPageObject
implements Checkbox

Selenium object for checkboxes.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
SeleniumCheckbox(SeleniumLocator locator, SeleniumContext ctx)
           
SeleniumCheckbox(SeleniumLocator locator, SeleniumContext ctx, Timeouts defaultTimeout)
           
 
Method Summary
 TimedCondition checked()
          Returns a boolean indicating whether this checkbox is checked.
protected  SeleniumLocator detector()
          Main locator of this page object.
 Locator locator()
          Locator unambiguously locating this page object.
 Checkbox toggle()
          Sets the checked status of this checkbox.
 
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

SeleniumCheckbox

public SeleniumCheckbox(SeleniumLocator locator,
                        SeleniumContext ctx)

SeleniumCheckbox

public SeleniumCheckbox(SeleniumLocator locator,
                        SeleniumContext ctx,
                        Timeouts defaultTimeout)
Method Detail

detector

protected SeleniumLocator detector()
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

checked

public TimedCondition checked()
Returns a boolean indicating whether this checkbox is checked.

Specified by:
checked in interface Checkbox
Returns:
a boolean indicating whether this checkbox is checked

toggle

public Checkbox toggle()
Sets the checked status of this checkbox.

Specified by:
toggle in interface Checkbox
Returns:
this

locator

public Locator locator()
Locator unambiguously locating this page object.

Specified by:
locator in interface Localizable
Returns:
locator


Copyright © 2002-2013 Atlassian. All Rights Reserved.