public class Browser extends PageObjectUtils
browser, config
Constructor and Description |
---|
Browser() |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
Get the base url for the Browser object
|
DefaultConfig |
getConfig()
Returns the currently stored configuration object.
|
org.openqa.selenium.WebDriver |
getDriver()
Returns the stored
WebDriver object(if any) else fetches the WebDriver object from the CacheDriverFactory class. |
void |
setBaseUrl(String baseUrl)
Sets the base Url
|
void |
setConfig(DefaultConfig config)
Set the Default Config object to this object.
|
void |
setDriver(org.openqa.selenium.WebDriver driver)
Sets the
WebDriver object into this Browser class object. |
at, at, at, at, at, at, getPageObject, getPageObject, getPageObject, getUrl, isAt, isAt, isAt, isAt, isAt, isAt, setBrowser, to, to, to, to, to, to, to
evaluateFileFromResourceDirectory, waitForElementPresent, waitForElementPresent, waitForElementPresent, waitForElementPresent, waitForElementToBeVisible, waitForElementToBeVisible, waitForPage, waitForPage
public org.openqa.selenium.WebDriver getDriver()
WebDriver
object(if any) else fetches the WebDriver
object from the CacheDriverFactory
class.WebDriver
object.public void setDriver(org.openqa.selenium.WebDriver driver)
WebDriver
object into this Browser class object.driver
- - WebDriver
to be set and used by the Browser object.public DefaultConfig getConfig()
DefaultConfig
object(if any) else create and get the DefaultConfig
objectpublic void setConfig(DefaultConfig config)
config
- public String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl
- Copyright © 2014. All rights reserved.