Class WebdriverUtils
- java.lang.Object
-
- com.atlassian.confluence.pageobjects.WebdriverUtils
-
@Deprecated public class WebdriverUtils extends Object
Deprecated.in 5.8. UseWebdriverUtilsinstead from maven modulecom.atlassian.confluence:confluence-webdriver-pageobjects. See the new README.A utility class for webdriver tests.
-
-
Constructor Summary
Constructors Constructor Description WebdriverUtils(com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder, org.openqa.selenium.JavascriptExecutor executor, com.atlassian.pageobjects.elements.timeout.Timeouts timeouts)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetMetadata(String name)Deprecated.Returns the meta tag's content.LonggetPageRequestTime()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.voidwaitForPageChange(Runnable r)Deprecated.Ensures that after running the given Runnable that the page did reload.
-
-
-
Method Detail
-
waitForPageChange
public void waitForPageChange(Runnable r)
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
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
public Long 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
public String getMetadata(String name)
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
public void scrollToElement(String elementId)
Deprecated.
-
-