org.openqa.selenium.ie
Class InternetExplorerDriver

java.lang.Object
  extended by org.openqa.selenium.ie.InternetExplorerDriver
All Implemented Interfaces:
JavascriptExecutor, SearchContext, TakesScreenshot, WebDriver

public class InternetExplorerDriver
extends java.lang.Object
implements WebDriver, JavascriptExecutor, TakesScreenshot


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts
 
Constructor Summary
InternetExplorerDriver()
           
InternetExplorerDriver(Capabilities caps)
           
 
Method Summary
 void close()
           
 java.lang.Object executeScript(java.lang.String script, java.lang.Object... args)
          Execute javascript in the context of the currently selected frame or window.
protected  void finalize()
           
 WebElement findElement(By by)
           
 java.util.List<WebElement> findElements(By by)
           
 void get(java.lang.String url)
           
 java.lang.String getCurrentUrl()
           
 com.sun.jna.Pointer getDriverPointer()
           
 java.lang.String getPageSource()
           
<X> X
getScreenshotAs(OutputType<X> target)
           
 java.lang.String getTitle()
           
 boolean getVisible()
          Is the browser visible or not?
 java.lang.String getWindowHandle()
           
 java.util.Set<java.lang.String> getWindowHandles()
           
 boolean isJavascriptEnabled()
           
 WebDriver.Options manage()
           
 WebDriver.Navigation navigate()
           
 void quit()
           
 void setVisible(boolean visible)
          Make the browser visible or not.
 WebDriver.TargetLocator switchTo()
           
 java.lang.String toString()
           
protected  void waitForLoadToComplete()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternetExplorerDriver

public InternetExplorerDriver()

InternetExplorerDriver

public InternetExplorerDriver(Capabilities caps)
Method Detail

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:

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 execute
args - 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.