com.atlassian.webdriver
Interface AtlassianWebDriver

All Superinterfaces:
BrowserAware, org.openqa.selenium.interactions.HasInputDevices, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.WebDriver, org.openqa.selenium.internal.WrapsDriver
All Known Implementing Classes:
DefaultAtlassianWebDriver

Deprecated. scheduled for removal in 3.0. See particular methods for references to replacing functionality.

@Deprecated
public interface AtlassianWebDriver
extends org.openqa.selenium.WebDriver, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.interactions.HasInputDevices, BrowserAware, org.openqa.selenium.internal.WrapsDriver

Represents the web browser, adds common helper methods on top of WebDriver.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
 
Method Summary
 void dumpSourceTo(File dumpFile)
          Deprecated. use WebDriverDebug.dumpSourceTo(File)
 boolean elementExists(org.openqa.selenium.By locator)
          Deprecated. use Check.elementExists(By, SearchContext) instead
 boolean elementExistsAt(org.openqa.selenium.By locator, org.openqa.selenium.SearchContext context)
          Deprecated. use Check.elementExists(By, SearchContext) instead
 boolean elementIsVisible(org.openqa.selenium.By locator)
          Deprecated. use Check.elementIsVisible(By, SearchContext) instead
 boolean elementIsVisibleAt(org.openqa.selenium.By locator, org.openqa.selenium.SearchContext context)
          Deprecated. use Check.elementIsVisible(By, SearchContext) instead
 org.openqa.selenium.WebDriver getDriver()
          Deprecated. Gets the underlying WebDriver.
 void quit()
          Deprecated. Quits this driver, closing every associated window.
 void takeScreenshotTo(File destFile)
          Deprecated. use WebDriverDebug.takeScreenshotTo(File)
 void waitUntil(com.google.common.base.Function<org.openqa.selenium.WebDriver,Boolean> isTrue)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntil(com.google.common.base.Function<org.openqa.selenium.WebDriver,Boolean> isTrue, int timeoutInSeconds)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntilElementIsLocated(org.openqa.selenium.By elementLocator)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntilElementIsLocatedAt(org.openqa.selenium.By elementLocator, org.openqa.selenium.SearchContext context)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntilElementIsNotLocated(org.openqa.selenium.By elementLocator)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntilElementIsNotLocatedAt(org.openqa.selenium.By elementLocator, org.openqa.selenium.SearchContext context)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntilElementIsNotVisible(org.openqa.selenium.By elementLocator)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntilElementIsNotVisibleAt(org.openqa.selenium.By elementLocator, org.openqa.selenium.SearchContext context)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntilElementIsVisible(org.openqa.selenium.By elementLocator)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 void waitUntilElementIsVisibleAt(org.openqa.selenium.By elementLocator, org.openqa.selenium.SearchContext context)
          Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.
 
Methods inherited from interface org.openqa.selenium.WebDriver
close, findElement, findElements, get, getCurrentUrl, getPageSource, getTitle, getWindowHandle, getWindowHandles, manage, navigate, switchTo
 
Methods inherited from interface org.openqa.selenium.JavascriptExecutor
executeAsyncScript, executeScript
 
Methods inherited from interface org.openqa.selenium.interactions.HasInputDevices
getKeyboard, getMouse
 
Methods inherited from interface com.atlassian.pageobjects.browser.BrowserAware
getBrowser
 
Methods inherited from interface org.openqa.selenium.internal.WrapsDriver
getWrappedDriver
 

Method Detail

getDriver

org.openqa.selenium.WebDriver getDriver()
Deprecated. 
Gets the underlying WebDriver.

Returns:
WebDriver

quit

void quit()
Deprecated. 
Quits this driver, closing every associated window.

Specified by:
quit in interface org.openqa.selenium.WebDriver

waitUntil

void waitUntil(com.google.common.base.Function<org.openqa.selenium.WebDriver,Boolean> isTrue)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Waits for condition to evaluate to true until default timeout.

If the condition does not become true within default timeout, this method will throw a TimeoutException.

Parameters:
isTrue - Function that evaluates true if waiting is complete.

waitUntil

void waitUntil(com.google.common.base.Function<org.openqa.selenium.WebDriver,Boolean> isTrue,
               int timeoutInSeconds)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Waits for condition to evaluate to true until given timeout.

If the condition does not become true within given timeout, this method will throw a TimeoutException.

Parameters:
isTrue - Function that evaluates true if waiting is complete.
timeoutInSeconds - Timeout in seconds to wait for condition to return true.

dumpSourceTo

void dumpSourceTo(File dumpFile)
Deprecated. use WebDriverDebug.dumpSourceTo(File)

Writes the source of the last loaded page to the specified file.

Parameters:
dumpFile - File to write the source to.

takeScreenshotTo

void takeScreenshotTo(File destFile)
Deprecated. use WebDriverDebug.takeScreenshotTo(File)

Saves screen shot of the browser to the specified file.

Parameters:
destFile - File to save screen shot.

waitUntilElementIsVisibleAt

void waitUntilElementIsVisibleAt(org.openqa.selenium.By elementLocator,
                                 org.openqa.selenium.SearchContext context)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Wait until element is visible within search context.

Parameters:
elementLocator - Locator strategy for the element.
context - SearchContext to use when locating.

waitUntilElementIsVisible

void waitUntilElementIsVisible(org.openqa.selenium.By elementLocator)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Wait until element is visible on the page.

Parameters:
elementLocator - Locator strategy for the element.

waitUntilElementIsNotVisibleAt

void waitUntilElementIsNotVisibleAt(org.openqa.selenium.By elementLocator,
                                    org.openqa.selenium.SearchContext context)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Wait until element is not visible within a search context.

Parameters:
elementLocator - Locator strategy for the element.
context - SearchContext to use when locating.

waitUntilElementIsNotVisible

void waitUntilElementIsNotVisible(org.openqa.selenium.By elementLocator)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Wait until element is not visible on the page.

Parameters:
elementLocator - Locator strategy for the element.

waitUntilElementIsLocatedAt

void waitUntilElementIsLocatedAt(org.openqa.selenium.By elementLocator,
                                 org.openqa.selenium.SearchContext context)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Wait until element is present within a search context.

Parameters:
elementLocator - Locator strategy for the element.
context - SearchContext to use when locating.

waitUntilElementIsLocated

void waitUntilElementIsLocated(org.openqa.selenium.By elementLocator)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Wait until element is present on the page.

Parameters:
elementLocator - Locator strategy for the element.

waitUntilElementIsNotLocatedAt

void waitUntilElementIsNotLocatedAt(org.openqa.selenium.By elementLocator,
                                    org.openqa.selenium.SearchContext context)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Wait until element is not present within a search context.

Parameters:
elementLocator - Locator strategy for the element.
context - Parent element to use when locating.

waitUntilElementIsNotLocated

void waitUntilElementIsNotLocated(org.openqa.selenium.By elementLocator)
Deprecated. use WebDriverPoller instead. For more sophisticated polling/waiting toolkit, check the PageElement API in the atlassian-pageobjects-elements module.

Wait until element is not present on the page.

Parameters:
elementLocator - Locator strategy for the element.

elementExists

boolean elementExists(org.openqa.selenium.By locator)
Deprecated. use Check.elementExists(By, SearchContext) instead

Whether an element is present on the page.

Parameters:
locator - Locator strategy for the element.
Returns:
True if the element is present, false otherwise.

elementExistsAt

boolean elementExistsAt(org.openqa.selenium.By locator,
                        org.openqa.selenium.SearchContext context)
Deprecated. use Check.elementExists(By, SearchContext) instead

Whether an element is present within a search context.

Parameters:
locator - Locator strategy for the element.
context - SearchContext to use when locating.
Returns:
True if element is present, false otherwise.

elementIsVisible

boolean elementIsVisible(org.openqa.selenium.By locator)
Deprecated. use Check.elementIsVisible(By, SearchContext) instead

Whether an element is visible on the page.

Parameters:
locator - Locator strategy for the element.
Returns:
True if element is visible, false otherwise

elementIsVisibleAt

boolean elementIsVisibleAt(org.openqa.selenium.By locator,
                           org.openqa.selenium.SearchContext context)
Deprecated. use Check.elementIsVisible(By, SearchContext) instead

Whether an element is visible within a given search context.

Parameters:
locator - Locator strategy for the element.
context - SearchContext to use when locating.
Returns:
True if element is visible, false otherwise


Copyright © 2014 Atlassian. All rights reserved.