WebdriverUtils
instead from
maven module com.atlassian.confluence:confluence-webdriver-pageobjects
. See the new README.@Deprecated public class WebdriverUtils extends Object
Constructor and Description |
---|
WebdriverUtils(com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder,
org.openqa.selenium.JavascriptExecutor executor,
com.atlassian.pageobjects.elements.timeout.Timeouts timeouts)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getMetadata(String name)
Deprecated.
Returns the meta tag's content.
|
long |
getMetadataLong(String name)
Deprecated.
|
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
|
void |
scrollToElement(String elementId)
Deprecated.
|
void |
waitForNoPageReload(com.atlassian.pageobjects.elements.PageElement elementToClick)
Deprecated.
|
void |
waitForPageChange(com.atlassian.pageobjects.elements.PageElement elementToClick)
Deprecated.
This method is useful when a new page is loaded via javascript.
|
void |
waitForPageChange(Runnable r)
Deprecated.
Ensures that after running the given Runnable that the page did reload.
|
@Inject public WebdriverUtils(com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder, org.openqa.selenium.JavascriptExecutor executor, com.atlassian.pageobjects.elements.timeout.Timeouts timeouts)
public void waitForPageChange(Runnable r)
r
- a runnable that will perform some action that should cause a page reload.for {@link #waitForPageChange(com.atlassian.pageobjects.elements.PageElement)}.
public void waitForPageChange(com.atlassian.pageobjects.elements.PageElement elementToClick)
elementToClick
- the element to click before waiting for the page to changepublic void waitForNoPageReload(com.atlassian.pageobjects.elements.PageElement elementToClick)
public Long getPageRequestTime()
public String getMetadata(String name)
name
- name of the meta tag, excluding the ajs- prefixpublic long getMetadataLong(String name)
public void scrollToElement(String elementId)
Copyright © 2003–2017 Atlassian. All rights reserved.