Package com.axway.ats.uiengine
Class AbstractRealBrowserDriver
- java.lang.Object
-
- com.axway.ats.uiengine.UiDriver
-
- com.axway.ats.uiengine.AbstractHtmlDriver
-
- com.axway.ats.uiengine.AbstractRealBrowserDriver
-
- Direct Known Subclasses:
ChromeDriver,EdgeDriver,FirefoxDriver,InternetExplorerDriver,PhantomJsDriver,SafariDriver
public abstract class AbstractRealBrowserDriver extends AbstractHtmlDriver
A driver operating over a real UI browser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractRealBrowserDriver.BrowserType
-
Field Summary
Fields Modifier and Type Field Description protected AbstractRealBrowserDriver.BrowserTypebrowserTypeprotected org.openqa.selenium.WebDriverwebDriver
-
Constructor Summary
Constructors Constructor Description AbstractRealBrowserDriver(AbstractRealBrowserDriver.BrowserType browserType, String url, String browserPath)AbstractRealBrowserDriver(AbstractRealBrowserDriver.BrowserType browserType, String url, String browserPath, String remoteSeleniumURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExpectedPopup(IExpectedPopup expectedPopup)Note: For internal use onlyvoidclearExpectedPopups()Note: For internal use onlybooleancontainsExpectedPopup(IExpectedPopup expectedPopup)Note: For internal use onlyRealHtmlEnginegetHtmlEngine()ObjectgetInternalObject(String objectName)NOTE: This method should not be used directly into the test scripts.voidhandleExpectedPopups()Note: For internal use onlyvoidstart()start the drivervoidstop()stop the drivervoidwaitForPageLoaded(org.openqa.selenium.WebDriver driver, int timeoutInSeconds)-
Methods inherited from class com.axway.ats.uiengine.UiDriver
getChromeDriver, getChromeDriver, getCustomDriver, getEdgeDriver, getEdgeDriver, getFirefoxDriver, getFirefoxDriver, getFirefoxDriver, getHiddenBrowserDriver, getHiddenBrowserDriver, getInternetExplorerDriver, getInternetExplorerDriver, getMobileDriver, getMobileDriver, getPhantomJSDriver, getRobotDriver, getSafariDriver, getSafariDriver, getSwingDriver, getSwingDriver, getSwingDriver, getSwingDriver
-
-
-
-
Field Detail
-
browserType
protected AbstractRealBrowserDriver.BrowserType browserType
-
webDriver
protected org.openqa.selenium.WebDriver webDriver
-
-
Constructor Detail
-
AbstractRealBrowserDriver
public AbstractRealBrowserDriver(AbstractRealBrowserDriver.BrowserType browserType, String url, String browserPath)
- Parameters:
browserType- The Browser kind. CheckAbstractRealBrowserDriver.BrowserTypeurl- the target application URLbrowserPath- full path to a real UI browser or the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)
-
AbstractRealBrowserDriver
public AbstractRealBrowserDriver(AbstractRealBrowserDriver.BrowserType browserType, String url, String browserPath, String remoteSeleniumURL)
- Parameters:
browserType- The Browser kind. CheckAbstractRealBrowserDriver.BrowserTypeurl- the target application URLbrowserPath- full path to a real UI browserremoteSeleniumURL- the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)
-
-
Method Detail
-
start
public void start()
Description copied from class:UiDriverstart the driver
-
waitForPageLoaded
public void waitForPageLoaded(org.openqa.selenium.WebDriver driver, int timeoutInSeconds)
-
stop
public void stop()
Description copied from class:UiDriverstop the driver
-
getHtmlEngine
public RealHtmlEngine getHtmlEngine()
- Specified by:
getHtmlEnginein classAbstractHtmlDriver- Returns:
- an HtmlEngine instance
-
getInternalObject
public Object getInternalObject(String objectName)
NOTE: This method should not be used directly into the test scripts. The implementation may be changed by the Automation Framework Team without notice.- Specified by:
getInternalObjectin classAbstractHtmlDriver- Returns:
- Internal Object
-
addExpectedPopup
public void addExpectedPopup(IExpectedPopup expectedPopup)
Note: For internal use only
-
containsExpectedPopup
public boolean containsExpectedPopup(IExpectedPopup expectedPopup)
Note: For internal use only
-
clearExpectedPopups
public void clearExpectedPopups()
Note: For internal use only
-
handleExpectedPopups
public void handleExpectedPopups()
Note: For internal use only
-
-