Package core.uiCore.webElement
Class ElementObject
- java.lang.Object
-
- core.uiCore.webElement.ElementObject
-
public class ElementObject extends Object
supporting 2 locator strategies: by, by2- Author:
- CAEHMAT
-
-
Field Summary
Fields Modifier and Type Field Description org.openqa.selenium.BybyElement.DriverTypedriverTypeStringlocatorElement.LocatorTypelocatorTypeStringname
-
Constructor Summary
Constructors Constructor Description ElementObject(org.openqa.selenium.By by, String name)gets by value for elementsElementObject(org.openqa.selenium.By by, String name, String locator, Element.LocatorType locatorType, Element.DriverType driverType)gets by value for elements
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementObjectwithBy(org.openqa.selenium.By by)ElementObjectwithName(String name)
-
-
-
Field Detail
-
by
public org.openqa.selenium.By by
-
name
public String name
-
locator
public String locator
-
locatorType
public Element.LocatorType locatorType
-
driverType
public Element.DriverType driverType
-
-
Constructor Detail
-
ElementObject
public ElementObject(org.openqa.selenium.By by, String name)gets by value for elements- Parameters:
by-name-
-
ElementObject
public ElementObject(org.openqa.selenium.By by, String name, String locator, Element.LocatorType locatorType, Element.DriverType driverType)gets by value for elements- Parameters:
by-name-
-
-
Method Detail
-
withBy
public ElementObject withBy(org.openqa.selenium.By by)
-
withName
public ElementObject withName(String name)
-
-