public class Browser extends Object implements SeleniumRepresentable
Encapsulates execution properties of selected browser.
Consists from browser mode (including its type) and associated executable file
| Constructor and Description |
|---|
Browser(BrowserMode browserMode)
Instantiates a new browser by given browserMode
|
Browser(BrowserMode browserMode,
File executableFile)
Instantiates a new browser by given browserMode and executableFile.
|
Browser(String stringRepresentation)
Instantiates a new browser from string representation defined by Selenium framework
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BrowserMode |
getMode()
Gets the browser's mode (see
BrowserMode). |
BrowserType |
getType()
Gets the type of browser.
|
int |
hashCode() |
String |
inSeleniumRepresentation()
Gets a string representation of browser.
|
String |
toString()
Returns a string representation of the object in human-readable format.
|
public Browser(String stringRepresentation)
Instantiates a new browser from string representation defined by Selenium framework
e.g. "*pifirefox /some/path/firefox-bin"
stringRepresentation - the string representationpublic Browser(BrowserMode browserMode)
browserMode - the browser modepublic Browser(BrowserMode browserMode, File executableFile)
browserMode - the browser modeexecutableFile - the executable filepublic BrowserMode getMode()
BrowserMode).public BrowserType getType()
Gets the type of browser.
Shortcut for BrowserMode.getType().
public String inSeleniumRepresentation()
Gets a string representation of browser.
inSeleniumRepresentation in interface SeleniumRepresentableBrowser(String)public String toString()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.