Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sf.testium.selenium;
 
 public interface PageElement {

Is the element currently present or not? This will generally return true for everything that can be found in the DOM.

Returns:
True if the element is present, false otherwise.
	public boolean isPresent();

Is the element currently enabled or not? This will generally return true for everything but disabled input elements.

Returns:
True if the element is enabled, false otherwise.
Throws:
org.openqa.selenium.StaleElementReferenceException
See also:
org.openqa.selenium.WebElement.isEnabled()
	public boolean isEnabled();

Is this element displayed or not? This method avoids the problem of having to parse an element's "style" attribute.

Returns:
Whether or not the element is displayed
Throws:
org.openqa.selenium.StaleElementReferenceException
See also:
org.openqa.selenium.WebElement.isDisplayed()
	public boolean isDisplayed();

Returns:
the timeout that can be used for this page to load.
	public int getTimeout();
New to GrepCode? Check out our FAQ X