Package io.github.sukgu
Class Shadow
- java.lang.Object
-
- io.github.sukgu.Shadow
-
public class Shadow extends Object
-
-
Constructor Summary
Constructors Constructor Description Shadow(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElementfindElement(String cssSelector)org.openqa.selenium.WebElementfindElement(org.openqa.selenium.WebElement parent, String cssSelector)org.openqa.selenium.WebElementfindElementByXPath(String XPath)org.openqa.selenium.WebElementfindElementByXPath(org.openqa.selenium.WebElement parent, String XPath)List<org.openqa.selenium.WebElement>findElements(String cssSelector)List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.WebElement parent, String cssSelector)List<org.openqa.selenium.WebElement>findElementsByXPath(String XPath)List<org.openqa.selenium.WebElement>findElementsByXPath(org.openqa.selenium.WebElement parent, String XPath)List<org.openqa.selenium.WebElement>getAllShadowElement(org.openqa.selenium.WebElement parent, String selector)StringgetAttribute(org.openqa.selenium.WebElement element, String attribute)List<org.openqa.selenium.WebElement>getChildElements(org.openqa.selenium.WebElement parent)org.openqa.selenium.WebElementgetNextSiblingElement(org.openqa.selenium.WebElement element)org.openqa.selenium.WebElementgetParentElement(org.openqa.selenium.WebElement element)org.openqa.selenium.WebElementgetPreviousSiblingElement(org.openqa.selenium.WebElement element)org.openqa.selenium.WebElementgetShadowElement(org.openqa.selenium.WebElement parent, String selector)org.openqa.selenium.WebElementgetSiblingElement(org.openqa.selenium.WebElement element, String selector)List<org.openqa.selenium.WebElement>getSiblingElements(org.openqa.selenium.WebElement element)voidhighlight(org.openqa.selenium.WebElement element)voidhighlight(org.openqa.selenium.WebElement element, String color, Integer timeInMiliSeconds)booleanisChecked(org.openqa.selenium.WebElement element)booleanisDisabled(org.openqa.selenium.WebElement element)booleanisVisible(org.openqa.selenium.WebElement element)voidscrollTo(org.openqa.selenium.WebElement element)voidselectCheckbox(String label)voidselectCheckbox(org.openqa.selenium.WebElement parentElement, String label)voidselectDropdown(String label)voidselectDropdown(org.openqa.selenium.WebElement parentElement, String label)voidselectRadio(String label)voidselectRadio(org.openqa.selenium.WebElement parentElement, String label)voidsetExplicitWait(int seconds, int pollingTime)voidsetImplicitWait(int seconds)
-
-
-
Method Detail
-
setImplicitWait
public void setImplicitWait(int seconds)
-
setExplicitWait
public void setExplicitWait(int seconds, int pollingTime) throws Exception- Throws:
Exception
-
findElement
public org.openqa.selenium.WebElement findElement(String cssSelector)
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.WebElement parent, String cssSelector)
-
findElements
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.WebElement parent, String cssSelector)
-
findElementByXPath
public org.openqa.selenium.WebElement findElementByXPath(String XPath)
-
findElementByXPath
public org.openqa.selenium.WebElement findElementByXPath(org.openqa.selenium.WebElement parent, String XPath)
-
findElementsByXPath
public List<org.openqa.selenium.WebElement> findElementsByXPath(org.openqa.selenium.WebElement parent, String XPath)
-
getShadowElement
public org.openqa.selenium.WebElement getShadowElement(org.openqa.selenium.WebElement parent, String selector)
-
getAllShadowElement
public List<org.openqa.selenium.WebElement> getAllShadowElement(org.openqa.selenium.WebElement parent, String selector)
-
getParentElement
public org.openqa.selenium.WebElement getParentElement(org.openqa.selenium.WebElement element)
-
getChildElements
public List<org.openqa.selenium.WebElement> getChildElements(org.openqa.selenium.WebElement parent)
-
getSiblingElements
public List<org.openqa.selenium.WebElement> getSiblingElements(org.openqa.selenium.WebElement element)
-
getSiblingElement
public org.openqa.selenium.WebElement getSiblingElement(org.openqa.selenium.WebElement element, String selector)
-
getNextSiblingElement
public org.openqa.selenium.WebElement getNextSiblingElement(org.openqa.selenium.WebElement element)
-
getPreviousSiblingElement
public org.openqa.selenium.WebElement getPreviousSiblingElement(org.openqa.selenium.WebElement element)
-
isVisible
public boolean isVisible(org.openqa.selenium.WebElement element)
-
isChecked
public boolean isChecked(org.openqa.selenium.WebElement element)
-
isDisabled
public boolean isDisabled(org.openqa.selenium.WebElement element)
-
selectCheckbox
public void selectCheckbox(org.openqa.selenium.WebElement parentElement, String label)
-
selectCheckbox
public void selectCheckbox(String label)
-
selectRadio
public void selectRadio(org.openqa.selenium.WebElement parentElement, String label)
-
selectRadio
public void selectRadio(String label)
-
selectDropdown
public void selectDropdown(org.openqa.selenium.WebElement parentElement, String label)
-
selectDropdown
public void selectDropdown(String label)
-
scrollTo
public void scrollTo(org.openqa.selenium.WebElement element)
-
highlight
public void highlight(org.openqa.selenium.WebElement element, String color, Integer timeInMiliSeconds)
-
highlight
public void highlight(org.openqa.selenium.WebElement element)
-
-