org.openqa.selenium.remote
Class RemoteWebDriver
java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver
- All Implemented Interfaces:
- FindsByClassName, FindsById, FindsByLinkText, FindsByName, FindsByXPath, JavascriptExecutor, SearchContext, WebDriver
public class RemoteWebDriver
- extends java.lang.Object
- implements WebDriver, SearchContext, JavascriptExecutor, FindsById, FindsByClassName, FindsByLinkText, FindsByName, FindsByXPath
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clientProcess
protected java.lang.Process clientProcess
RemoteWebDriver
public RemoteWebDriver(CommandExecutor executor,
Capabilities desiredCapabilities)
RemoteWebDriver
public RemoteWebDriver(Capabilities desiredCapabilities)
throws java.lang.Exception
- Throws:
java.lang.Exception
RemoteWebDriver
public RemoteWebDriver(java.net.URL remoteAddress,
Capabilities desiredCapabilities)
throws java.lang.Exception
- Throws:
java.lang.Exception
startSession
protected void startSession(Capabilities desiredCapabilities)
startClient
protected void startClient()
stopClient
protected void stopClient()
getCapabilities
public Capabilities getCapabilities()
get
public void get(java.lang.String url)
- Specified by:
get in interface WebDriver
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle in interface WebDriver
getCurrentUrl
public java.lang.String getCurrentUrl()
- Specified by:
getCurrentUrl in interface WebDriver
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
findElementById
public WebElement findElementById(java.lang.String using)
- Specified by:
findElementById in interface FindsById
findElementsById
public java.util.List<WebElement> findElementsById(java.lang.String using)
- Specified by:
findElementsById in interface FindsById
findElementByLinkText
public WebElement findElementByLinkText(java.lang.String using)
- Specified by:
findElementByLinkText in interface FindsByLinkText
findElementsByLinkText
public java.util.List<WebElement> findElementsByLinkText(java.lang.String using)
- Specified by:
findElementsByLinkText in interface FindsByLinkText
findElementByPartialLinkText
public WebElement findElementByPartialLinkText(java.lang.String using)
- Specified by:
findElementByPartialLinkText in interface FindsByLinkText
findElementsByPartialLinkText
public java.util.List<WebElement> findElementsByPartialLinkText(java.lang.String using)
- Specified by:
findElementsByPartialLinkText in interface FindsByLinkText
findElementByName
public WebElement findElementByName(java.lang.String using)
- Specified by:
findElementByName in interface FindsByName
findElementsByName
public java.util.List<WebElement> findElementsByName(java.lang.String using)
- Specified by:
findElementsByName in interface FindsByName
findElementByClassName
public WebElement findElementByClassName(java.lang.String using)
- Specified by:
findElementByClassName in interface FindsByClassName
findElementsByClassName
public java.util.List<WebElement> findElementsByClassName(java.lang.String using)
- Specified by:
findElementsByClassName in interface FindsByClassName
findElementByXPath
public WebElement findElementByXPath(java.lang.String using)
- Specified by:
findElementByXPath in interface FindsByXPath
findElementsByXPath
public java.util.List<WebElement> findElementsByXPath(java.lang.String using)
- Specified by:
findElementsByXPath in interface FindsByXPath
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)
- Specified by:
executeScript in interface JavascriptExecutor
isJavascriptEnabled
public boolean isJavascriptEnabled()
- Specified by:
isJavascriptEnabled in interface JavascriptExecutor
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
getElementFrom
protected WebElement getElementFrom(Response response)
getElementsFrom
protected java.util.List<WebElement> getElementsFrom(Response response)
execute
protected Response execute(java.lang.String commandName,
java.lang.Object... parameters)
Copyright © 2009. All Rights Reserved.