Class ClassName
- Namespace
- CSF.Screenplay.Selenium.Elements
- Assembly
- CSF.Screenplay.Selenium.dll
Concrete implementation of Locator which locates elements by their HTML class attribute value.
public class ClassName : Locator, ITarget, IHasName
- Inheritance
-
ClassName
- Implements
- Inherited Members
- Extension Methods
Constructors
ClassName(string, string)
Initializes a new instance of the ClassName class.
public ClassName(string className, string name = null)
Parameters
classNamestringThe class attribute value by which to locate elements.
namestringAn optional human-readable name of the locator which describes the elements it matches.
Methods
GetDefaultName()
Gets a value for Name if none has been specified.
protected override string GetDefaultName()
Returns
- string
A default name
GetLocator()
Gets the Selenium locator instance for finding HTML elements.
public override By GetLocator()
Returns
- By
A Selenium
Byobject used to locate elements.