org.openqa.selenium.ie
Class InternetExplorerDriver
java.lang.Object
org.openqa.selenium.ie.InternetExplorerDriver
- All Implemented Interfaces:
- JavascriptExecutor, SearchContext, TakesScreenshot, WebDriver
public class InternetExplorerDriver
- extends java.lang.Object
- implements WebDriver, JavascriptExecutor, TakesScreenshot
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InternetExplorerDriver
public InternetExplorerDriver()
getPageSource
public java.lang.String getPageSource()
- Specified by:
getPageSource
in interface WebDriver
close
public void close()
- Specified by:
close
in interface WebDriver
quit
public void quit()
- Specified by:
quit
in interface WebDriver
getWindowHandles
public java.util.Set<java.lang.String> getWindowHandles()
- Specified by:
getWindowHandles
in interface WebDriver
getWindowHandle
public java.lang.String getWindowHandle()
- Specified by:
getWindowHandle
in interface WebDriver
executeScript
public java.lang.Object executeScript(java.lang.String script,
java.lang.Object... args)
- Execute javascript in the context of the currently selected frame or
window. This means that "document" will refer to the current document.
If the script has a return value, then the following steps will be taken:
- For an HTML element, this method returns a WebElement
- For a number, a Long is returned
- For a boolean, a Boolean is returned
- For all other cases, a String is returned.
- Unless the value is null or there is no return value,
in which null is returned
- Does not support lists or arrays. See Webdriver issue #110
Arguments must be a number, a boolean, a String or WebElement.
An exception will be thrown if the arguments do not meet these criteria.
The arguments will be made available to the javascript via the "arguments"
magic variable, as if the function were called via "Function.apply"
- Specified by:
executeScript
in interface JavascriptExecutor
- Parameters:
script
- The javascript to executeargs
- The arguments to the script. May be empty
- Returns:
- One of Boolean, Long, String or WebElement. Or null.
isJavascriptEnabled
public boolean isJavascriptEnabled()
- Specified by:
isJavascriptEnabled
in interface JavascriptExecutor
get
public void get(java.lang.String url)
- Specified by:
get
in interface WebDriver
getCurrentUrl
public java.lang.String getCurrentUrl()
- Specified by:
getCurrentUrl
in interface WebDriver
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle
in interface WebDriver
getVisible
public boolean getVisible()
- Is the browser visible or not?
- Returns:
- True if the browser can be seen, or false otherwise
setVisible
public void setVisible(boolean visible)
- Make the browser visible or not.
- Parameters:
visible
- Set whether or not the browser is visible
findElements
public java.util.List<WebElement> findElements(By by)
- Specified by:
findElements
in interface SearchContext
- Specified by:
findElements
in interface WebDriver
findElement
public WebElement findElement(By by)
- Specified by:
findElement
in interface SearchContext
- Specified by:
findElement
in interface WebDriver
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
switchTo
public WebDriver.TargetLocator switchTo()
- Specified by:
switchTo
in interface WebDriver
navigate
public WebDriver.Navigation navigate()
- Specified by:
navigate
in interface WebDriver
manage
public WebDriver.Options manage()
- Specified by:
manage
in interface WebDriver
waitForLoadToComplete
protected void waitForLoadToComplete()
getDriverPointer
public com.sun.jna.Pointer getDriverPointer()
getScreenshotAs
public <X> X getScreenshotAs(OutputType<X> target)
throws WebDriverException
- Specified by:
getScreenshotAs
in interface TakesScreenshot
- Throws:
WebDriverException
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable
Copyright © 2010. All Rights Reserved.