Class AppElementDescription
The Object Description how to identify the UI Elemen for native Mobile Application
Inherited Members
Namespace: AxaFrance.WebEngine.MobileApp
Assembly: AxaFrance.WebEngine.MobileApp.dll
Syntax
public class AppElementDescription : ElementDescription
Constructors
| Improve this Doc View SourceAppElementDescription()
Initialize the element description. If the element is not part of PageObject, you need to call UseDriver(WebDriver) to indicate with WebDriver will be used.
Declaration
public AppElementDescription()
AppElementDescription(WebDriver)
Initialize the element description using given WebDriver
Declaration
public AppElementDescription(WebDriver driver)
Parameters
Type | Name | Description |
---|---|---|
OpenQA.Selenium.WebDriver | driver | WebDriver instance |
Properties
| Improve this Doc View SourceAccessbilityId
To identify element via it's AccessibilityId. Id and AccessibilityId can't be used in the same time.
Declaration
public string AccessbilityId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ClassName
Classname of the element.
Declaration
public string ClassName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ContentDescription
To identify elements via it's content-desc. Name and ContentDescription can't be used in the same time.
Declaration
public string ContentDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Identifier of the element
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IosClassChain
Using IOS Class Chain, only avaiable for iOS applications. When using IosClassChain, other locators will be ignored..
Declaration
public string IosClassChain { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
The Name property of the element. Name and ContentDescription can't be used in the same time, or Name attribute will be ignored.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Text
Text of Innertext of the element
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UIAutomatorSelector
Using UIAutomator selector, only avaiable for Android applications. When using UIAutomator selector, other locators will be ignored.
Declaration
public string UIAutomatorSelector { get; set; }
Property Value
Type | Description |
---|---|
System.String |
XPath
XPath of the element. Please avoid to use XPATH if another identification approche is available.
Declaration
public string XPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceApplyAttribute(FindsByAttribute)
Applies the locator defined in FindsByAttribute. this function is called automatically before InternalFindElements()
Declaration
public override void ApplyAttribute(FindsByAttribute attr)
Parameters
Type | Name | Description |
---|---|---|
FindsByAttribute | attr |
Overrides
| Improve this Doc View SourceInternalFindElement()
Implemente element identifying algorithm, without the need of object synchronization.
Declaration
protected override IWebElement InternalFindElement()
Returns
Type | Description |
---|---|
OpenQA.Selenium.IWebElement | Identified test object. |
Overrides
| Improve this Doc View SourceInternalFindElements()
Implemente element identifying algorithm, without the need of object synchronization.
Declaration
protected override IReadOnlyCollection<IWebElement> InternalFindElements()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<OpenQA.Selenium.IWebElement> | Identified test objects |
Overrides
| Improve this Doc View SourceInternalGetScreenshot()
Implemente screenshot generation for the current specific element
Declaration
protected override byte[] InternalGetScreenshot()
Returns
Type | Description |
---|---|
System.Byte[] | The screenshot image in RAW Binary data format. |
Overrides
| Improve this Doc View SourceScrollDown()
Scroll the screen downward
Declaration
public void ScrollDown()
ScrollIntoView(ScrollDirection, Int32)
Tries to bring current element into viewport. This method will scroll the page multiple times to make the element visible. If after the maximum scroll action and the element is still not visible, the method will return false.
Declaration
public bool ScrollIntoView(ScrollDirection direction, int maxSwipe = 10)
Parameters
Type | Name | Description |
---|---|---|
ScrollDirection | direction | The direction of the scroll |
System.Int32 | maxSwipe | The maximum number of swipe action to make the element visible |
Returns
Type | Description |
---|---|
System.Boolean | True if the element is visible after scrolling. False when the element is not visible. |
ScrollIntoView(Int32)
Tries to bring current element into viewport. This method will scroll down the page multiple times to make the element visible. If after the maximum scroll action and the element is still not visible, the method will return false.
Declaration
public bool ScrollIntoView(int maxSwipe = 10)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxSwipe |
Returns
Type | Description |
---|---|
System.Boolean | True if the element is visible after scrolling. False when the element is not visible. |
ScrollUp()
Scroll the screen upward
Declaration
public void ScrollUp()
ToString()
Shows a string representation of this AppElementDescription
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation of this AppElementDescription |