Example usage for Java org.openqa.selenium WebDriver fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Close the current window, quitting the browser if it's the last window currently open. |
WebElement | findElement(By by) Find the first WebElement using the given method. |
List | findElements(By by) Find all elements within the current page using the given mechanism. |
void | get(String url) Load a new web page in the current browser window. |
String | getCurrentUrl() Get a string representing the current URL that the browser is looking at. |
String | getPageSource() Get the source of the last loaded page. |
String | getTitle() Get the title of the current page. |
String | getWindowHandle() Return an opaque handle to this window that uniquely identifies it within this driver instance. |
Set | getWindowHandles() Return a set of window handles which can be used to iterate over all open windows of this WebDriver instance by passing them to #switchTo() . |
Options | manage() Gets the Option interface |
Navigation | navigate() An abstraction allowing the driver to access the browser's history and to navigate to a given URL. |
void | quit() Quits this driver, closing every associated window. |
TargetLocator | switchTo() Send future commands to a different frame or window. |