Package io.github.d4vos
Class ShadowDriver
- java.lang.Object
-
- io.github.sukgu.Shadow
-
- io.github.d4vos.ShadowDriver
-
- All Implemented Interfaces:
org.openqa.selenium.interactions.Interactive,org.openqa.selenium.JavascriptExecutor,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebDriver
public class ShadowDriver extends io.github.sukgu.Shadow implements org.openqa.selenium.WebDriver, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.interactions.Interactive, org.openqa.selenium.TakesScreenshot
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
-
-
Constructor Summary
Constructors Constructor Description ShadowDriver(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ObjectexecuteAsyncScript(String s, Object... objects)ObjectexecuteScript(String s, Object... objects)org.openqa.selenium.WebElementfindElement(org.openqa.selenium.By by)List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.By by)voidget(String url)StringgetCurrentUrl()StringgetPageSource()<X> XgetScreenshotAs(org.openqa.selenium.OutputType<X> outputType)StringgetTitle()StringgetWindowHandle()Set<String>getWindowHandles()org.openqa.selenium.WebDriver.Optionsmanage()org.openqa.selenium.WebDriver.Navigationnavigate()voidperform(Collection<org.openqa.selenium.interactions.Sequence> collection)voidquit()voidresetInputState()org.openqa.selenium.WebDriver.TargetLocatorswitchTo()-
Methods inherited from class io.github.sukgu.Shadow
findElement, findElement, findElementByXPath, findElementByXPath, findElements, findElements, findElementsByXPath, findElementsByXPath, getAllShadowElement, getAttribute, getChildElements, getNextSiblingElement, getParentElement, getPreviousSiblingElement, getShadowElement, getSiblingElement, getSiblingElements, highlight, highlight, isChecked, isDisabled, isVisible, scrollTo, selectCheckbox, selectCheckbox, selectDropdown, selectDropdown, selectRadio, selectRadio, setExplicitWait, setImplicitWait
-
-
-
-
Method Detail
-
findElements
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
- Specified by:
findElementsin interfaceorg.openqa.selenium.SearchContext- Specified by:
findElementsin interfaceorg.openqa.selenium.WebDriver
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
- Specified by:
findElementin interfaceorg.openqa.selenium.SearchContext- Specified by:
findElementin interfaceorg.openqa.selenium.WebDriver
-
get
public void get(String url)
- Specified by:
getin interfaceorg.openqa.selenium.WebDriver
-
getCurrentUrl
public String getCurrentUrl()
- Specified by:
getCurrentUrlin interfaceorg.openqa.selenium.WebDriver
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceorg.openqa.selenium.WebDriver
-
getPageSource
public String getPageSource()
- Specified by:
getPageSourcein interfaceorg.openqa.selenium.WebDriver
-
close
public void close()
- Specified by:
closein interfaceorg.openqa.selenium.WebDriver
-
quit
public void quit()
- Specified by:
quitin interfaceorg.openqa.selenium.WebDriver
-
getWindowHandles
public Set<String> getWindowHandles()
- Specified by:
getWindowHandlesin interfaceorg.openqa.selenium.WebDriver
-
getWindowHandle
public String getWindowHandle()
- Specified by:
getWindowHandlein interfaceorg.openqa.selenium.WebDriver
-
switchTo
public org.openqa.selenium.WebDriver.TargetLocator switchTo()
- Specified by:
switchToin interfaceorg.openqa.selenium.WebDriver
-
navigate
public org.openqa.selenium.WebDriver.Navigation navigate()
- Specified by:
navigatein interfaceorg.openqa.selenium.WebDriver
-
manage
public org.openqa.selenium.WebDriver.Options manage()
- Specified by:
managein interfaceorg.openqa.selenium.WebDriver
-
executeScript
public Object executeScript(String s, Object... objects)
- Specified by:
executeScriptin interfaceorg.openqa.selenium.JavascriptExecutor
-
executeAsyncScript
public Object executeAsyncScript(String s, Object... objects)
- Specified by:
executeAsyncScriptin interfaceorg.openqa.selenium.JavascriptExecutor
-
perform
public void perform(Collection<org.openqa.selenium.interactions.Sequence> collection)
- Specified by:
performin interfaceorg.openqa.selenium.interactions.Interactive
-
resetInputState
public void resetInputState()
- Specified by:
resetInputStatein interfaceorg.openqa.selenium.interactions.Interactive
-
getScreenshotAs
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) throws org.openqa.selenium.WebDriverException- Specified by:
getScreenshotAsin interfaceorg.openqa.selenium.TakesScreenshot- Throws:
org.openqa.selenium.WebDriverException
-
-