Class ElementShownException
Defines an exception for when an element is shown when it shouldn't be.
Namespace: Legerity.Exceptions
Assembly: Legerity.Core.dll
Syntax
public class ElementShownException : LegerityException
Constructors
| Improve this Doc View SourceElementShownException(String)
Initializes a new instance of the ElementShownException class.
Declaration
public ElementShownException(string locator)
Parameters
Type | Name | Description |
---|---|---|
System.String | locator | The locator used to locate the element. |
ElementShownException(String, Exception)
Initializes a new instance of the ElementShownException class.
Declaration
public ElementShownException(string locator, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | locator | The locator used to locate the element. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
Properties
| Improve this Doc View SourceElementName
Gets the name of the element that was shown.
Declaration
public string ElementName { get; }
Property Value
Type | Description |
---|---|
System.String |
Locator
Gets the locator used to locate the element.
Declaration
public string Locator { get; }
Property Value
Type | Description |
---|---|
System.String |