Class WebdriverUtils
java.lang.Object
com.atlassian.confluence.pageobjects.WebdriverUtils
Deprecated.
A utility class for webdriver tests.
-
Constructor Summary
ConstructorsConstructorDescriptionWebdriverUtils(com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder, org.openqa.selenium.JavascriptExecutor executor, com.atlassian.pageobjects.elements.timeout.Timeouts timeouts) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetMetadata(String name) Deprecated.Returns the meta tag's content.Deprecated.Returns the confluence request time served in the page's meta tag Note: this is done via javascript as the page can change during the time the elements are readvoidscrollToElement(String elementId) Deprecated.voidwaitForNoPageReload(com.atlassian.pageobjects.elements.PageElement elementToClick) Deprecated.voidwaitForPageChange(com.atlassian.pageobjects.elements.PageElement elementToClick) Deprecated.This method is useful when a new page is loaded via javascript.voidDeprecated.Ensures that after running the given Runnable that the page did reload.
-
Constructor Details
-
WebdriverUtils
@Inject public WebdriverUtils(com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder, org.openqa.selenium.JavascriptExecutor executor, com.atlassian.pageobjects.elements.timeout.Timeouts timeouts) Deprecated.
-
-
Method Details
-
waitForPageChange
Deprecated.Ensures that after running the given Runnable that the page did reload.- Parameters:
r- a runnable that will perform some action that should cause a page reload.- See Also:
-
for #waitForPageChange(com.atlassian.pageobjects.elements.PageElement).
-
waitForPageChange
public void waitForPageChange(com.atlassian.pageobjects.elements.PageElement elementToClick) Deprecated.This method is useful when a new page is loaded via javascript. e.g. when the Create button in the blueprint dialogs is clicked and the newly created page/space is loaded. This implementation is a little hacky but the best solution at the time of writing.- Parameters:
elementToClick- the element to click before waiting for the page to change
-
waitForNoPageReload
public void waitForNoPageReload(com.atlassian.pageobjects.elements.PageElement elementToClick) Deprecated. -
getPageRequestTime
Deprecated.Returns the confluence request time served in the page's meta tag Note: this is done via javascript as the page can change during the time the elements are read -
getMetadata
Deprecated.Returns the meta tag's content. Note that you do not have to pass the "ajs-" prefix to the name, this is done for you.- Parameters:
name- name of the meta tag, excluding the ajs- prefix- Returns:
- the content in the meta tag
-
scrollToElement
Deprecated.
-
WebdriverUtilsinstead from maven modulecom.atlassian.confluence:confluence-webdriver-pageobjects. See the new README.