com.atlassian.jira.webtest.framework.impl.selenium.locator
Interface SeleniumLocator

All Superinterfaces:
Locator, LocatorData
All Known Implementing Classes:
AbstractSeleniumLocator

public interface SeleniumLocator
extends Locator

Represents selenium locator and its 'id=value' syntax.

Since:
v4.2

Method Summary
 String bareLocator()
          Returns Selenium compatible locator, without the prefix (it is NOT always equal to LocatorData.value().
 SeleniumLocator combine(Locator locator)
          A version of Locator.combine(com.atlassian.jira.webtest.framework.core.locator.Locator) with covariant return type for easier usage in the Selenium implementation of the framework.
 Timeouts defaultTimeout()
          Default timeout for the timed conditions of this locator's element.
 String fullLocator()
          Returns full Selenium compatible locator.
 SeleniumLocator withDefaultTimeout(Timeouts defTimeout)
          Create new locator with this locator's data and a custom default timeout for the timed conditions of this locator's element.
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.locator.Locator
element, supports
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.locator.LocatorData
type, value
 

Method Detail

fullLocator

String fullLocator()
Returns full Selenium compatible locator.

Returns:
full Selenium locator ('id=value')

bareLocator

String bareLocator()
Returns Selenium compatible locator, without the prefix (it is NOT always equal to LocatorData.value().

Returns:
Selenium locator value without prefix

combine

SeleniumLocator combine(Locator locator)
A version of Locator.combine(com.atlassian.jira.webtest.framework.core.locator.Locator) with covariant return type for easier usage in the Selenium implementation of the framework.

Specified by:
combine in interface Locator
Parameters:
locator - locator to nest
Returns:
new locator resulting from nesting
See Also:
Locator.combine(com.atlassian.jira.webtest.framework.core.locator.Locator)

withDefaultTimeout

SeleniumLocator withDefaultTimeout(Timeouts defTimeout)
Create new locator with this locator's data and a custom default timeout for the timed conditions of this locator's element.

Parameters:
defTimeout - default timeout for the new locator's timed conditions
Returns:
new locator

defaultTimeout

Timeouts defaultTimeout()
Default timeout for the timed conditions of this locator's element.

Returns:
default timeout


Copyright © 2002-2013 Atlassian. All Rights Reserved.