Class GPALElement
Psuedo element used in Applications and Browser workflows for image matching which does not have an underlying element to automate.
No methods are implemented. Use this only for debugging. Only the following properties are actually used:
Location, Size, Text, TagName, WrappedDriver (web driver);
Inheritance
System.Object
GPALElement
Implements
OpenQA.Selenium.IWebElement
OpenQA.Selenium.ISearchContext
OpenQA.Selenium.IWrapsDriver
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: GPAL.dll
Syntax
public class GPALElement : IGPALElement, IWebElement, ISearchContext, IWrapsDriver
Properties
AttributeName
Declaration
public string AttributeName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Attributes
Declaration
public Dictionary<string, object> Attributes { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.Dictionary<System.String, System.Object> |
|
BoundingRect
Declaration
public ClientRectangle BoundingRect { get; set; }
Property Value
Css
Declaration
public string Css { get; set; }
Property Value
| Type |
Description |
| System.String |
|
DeltaX
Declaration
public int DeltaX { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
DeltaY
Declaration
public int DeltaY { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Displayed
Declaration
public bool Displayed { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Enabled
Declaration
public bool Enabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
FullXPath
Declaration
public string FullXPath { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Href
Declaration
public string Href { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ImageData
Declaration
public string ImageData { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Location
Declaration
public Point Location { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
|
OffsetX
Declaration
public int OffsetX { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
OffsetY
Declaration
public int OffsetY { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
PageURL
Declaration
public string PageURL { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Placeholder
Declaration
public string Placeholder { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Selected
Declaration
public bool Selected { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
SelectorName
Declaration
public string SelectorName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Size
Declaration
public Size Size { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Size |
|
Src
Declaration
public string Src { get; set; }
Property Value
| Type |
Description |
| System.String |
|
TagName
Declaration
public string TagName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Text
Declaration
public string Text { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Value
Declaration
public string Value { get; set; }
Property Value
| Type |
Description |
| System.String |
|
WrappedDriver
Declaration
public IWebDriver WrappedDriver { get; set; }
Property Value
| Type |
Description |
| OpenQA.Selenium.IWebDriver |
|
Xpath
Declaration
public string Xpath { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Xpaths
Declaration
public XPathInfo[] Xpaths { get; set; }
Property Value
Methods
Clear()
Declaration
Click()
Declaration
FindElement(By)
Declaration
public IWebElement FindElement(By by)
Parameters
| Type |
Name |
Description |
| OpenQA.Selenium.By |
by |
|
Returns
| Type |
Description |
| OpenQA.Selenium.IWebElement |
|
FindElements(By)
Declaration
public ReadOnlyCollection<IWebElement> FindElements(By by)
Parameters
| Type |
Name |
Description |
| OpenQA.Selenium.By |
by |
|
Returns
| Type |
Description |
| System.Collections.ObjectModel.ReadOnlyCollection<OpenQA.Selenium.IWebElement> |
|
GetAttribute(String)
Declaration
public string GetAttribute(string attributeName)
Parameters
| Type |
Name |
Description |
| System.String |
attributeName |
|
Returns
| Type |
Description |
| System.String |
|
GetCssValue(String)
Declaration
public string GetCssValue(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
Returns
| Type |
Description |
| System.String |
|
GetDomAttribute(String)
Declaration
public string GetDomAttribute(string attributeName)
Parameters
| Type |
Name |
Description |
| System.String |
attributeName |
|
Returns
| Type |
Description |
| System.String |
|
GetDomProperty(String)
Declaration
public string GetDomProperty(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
Returns
| Type |
Description |
| System.String |
|
GetShadowRoot()
Declaration
public ISearchContext GetShadowRoot()
Returns
| Type |
Description |
| OpenQA.Selenium.ISearchContext |
|
SendKeys(String)
Declaration
public void SendKeys(string text)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
Submit()
Declaration
Explicit Interface Implementations
IWrapsDriver.WrappedDriver
Declaration
IWebDriver IWrapsDriver.WrappedDriver { get; }
Returns
| Type |
Description |
| OpenQA.Selenium.IWebDriver |
|
Implements
OpenQA.Selenium.IWebElement
OpenQA.Selenium.ISearchContext
OpenQA.Selenium.IWrapsDriver
Extension Methods