Show / Hide Table of Contents

Class FindsByAttribute

Inspired from original Selenium Page Objects, this attribute allows you to quickly create ElementDescription inside a PageModel.

Inheritance
Object
Attribute
FindsByAttribute
Implements
_Attribute
Inherited Members
Attribute.GetCustomAttributes(MemberInfo, Type)
Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
Attribute.GetCustomAttributes(MemberInfo)
Attribute.GetCustomAttributes(MemberInfo, Boolean)
Attribute.IsDefined(MemberInfo, Type)
Attribute.IsDefined(MemberInfo, Type, Boolean)
Attribute.GetCustomAttribute(MemberInfo, Type)
Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
Attribute.GetCustomAttributes(ParameterInfo)
Attribute.GetCustomAttributes(ParameterInfo, Type)
Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
Attribute.GetCustomAttributes(ParameterInfo, Boolean)
Attribute.IsDefined(ParameterInfo, Type)
Attribute.IsDefined(ParameterInfo, Type, Boolean)
Attribute.GetCustomAttribute(ParameterInfo, Type)
Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
Attribute.GetCustomAttributes(Module, Type)
Attribute.GetCustomAttributes(Module)
Attribute.GetCustomAttributes(Module, Boolean)
Attribute.GetCustomAttributes(Module, Type, Boolean)
Attribute.IsDefined(Module, Type)
Attribute.IsDefined(Module, Type, Boolean)
Attribute.GetCustomAttribute(Module, Type)
Attribute.GetCustomAttribute(Module, Type, Boolean)
Attribute.GetCustomAttributes(Assembly, Type)
Attribute.GetCustomAttributes(Assembly, Type, Boolean)
Attribute.GetCustomAttributes(Assembly)
Attribute.GetCustomAttributes(Assembly, Boolean)
Attribute.IsDefined(Assembly, Type)
Attribute.IsDefined(Assembly, Type, Boolean)
Attribute.GetCustomAttribute(Assembly, Type)
Attribute.GetCustomAttribute(Assembly, Type, Boolean)
Attribute.Equals(Object)
Attribute.GetHashCode()
Attribute.Match(Object)
Attribute.IsDefaultAttribute()
Attribute._Attribute.GetTypeInfoCount(UInt32)
Attribute._Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
Attribute._Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
Attribute._Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
Attribute.TypeId
Namespace: AxaFrance.WebEngine.Web
Assembly: AxaFrance.WebEngine.Web.dll
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
public sealed class FindsByAttribute : Attribute, _Attribute
Remarks

You can use this attribute by specifying the How and Using properties to indicate how to find the elements. This attribute can be used to decorate fields and properties in your Page Object classes. The System.Type of the field or property must be subtypes of ElementDescription. Any other type will throw an System.ArgumentException when a PageModel is initialized.

Compared to original FindsByAttributes implemented in Selenium Support 3.x package, we have removed `Priority`, `CustomFinderType` which is not used in the logic of element locating.

Constructors

| Edit this page View Source

FindsByAttribute()

Initializing an instance of FindsByAttribute

Declaration
public FindsByAttribute()
| Edit this page View Source

FindsByAttribute(How, String)

Initializing an instance of FindsByAttribute with parameters.

Declaration
public FindsByAttribute(How how, string using)
Parameters
Type Name Description
How how
String using

Properties

| Edit this page View Source

How

Gets or sets the method used to look up the element

Declaration
public How How { get; set; }
Property Value
Type Description
How
| Edit this page View Source

Using

Gets or sets the value to lookup by (i.e. for How.Name, the actual name to look up)

Declaration
public string Using { get; set; }
Property Value
Type Description
String

Implements

System.Runtime.InteropServices._Attribute
  • Edit this page
  • View Source
In this article
Back to top Copyright ® 2016-2024 AXA France, All rights reserved.