Class InteractionExtensions
Defines a collection of extensions for performing interactions with elements.
Inheritance
System.Object
InteractionExtensions
Namespace: Legerity.Extensions
Assembly: Legerity.Core.dll
Syntax
public static class InteractionExtensions : object
Methods
| Improve this Doc View SourceClickAndHold(RemoteWebElement)
Clicks and holds on the element.
Declaration
public static void ClickAndHold(this RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The element to click and hold. |
Remarks
The element hold can be released by calling ReleaseHold(RemoteWebElement).
ClickAndHold<TElement>(IElementWrapper<TElement>)
Clicks and holds on the element.
Declaration
public static void ClickAndHold<TElement>(this IElementWrapper<TElement> element)
where TElement : IWebElement
Parameters
Type | Name | Description |
---|---|---|
IElementWrapper<TElement> | element | The element to click and hold. |
Type Parameters
Name | Description |
---|---|
TElement | The type of wrapped |
Remarks
The element hold can be released by calling ReleaseHold(RemoteWebElement).
ReleaseHold(RemoteWebElement)
Releases the hold click from the element.
Declaration
public static void ReleaseHold(this RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The element to release the hold from. |
ReleaseHold<TElement>(IElementWrapper<TElement>)
Releases the hold click from the element.
Declaration
public static void ReleaseHold<TElement>(this IElementWrapper<TElement> element)
where TElement : IWebElement
Parameters
Type | Name | Description |
---|---|---|
IElementWrapper<TElement> | element | The element to release the hold from. |
Type Parameters
Name | Description |
---|---|
TElement | The type of wrapped |
ScrollTo(RemoteWebElement)
Scrolls to the element.
Declaration
public static void ScrollTo(this RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The element to scroll to. |
ScrollTo<TElement>(IElementWrapper<TElement>)
Scrolls to the element.
Declaration
public static void ScrollTo<TElement>(this IElementWrapper<TElement> element)
where TElement : IWebElement
Parameters
Type | Name | Description |
---|---|---|
IElementWrapper<TElement> | element | The element to scroll to. |
Type Parameters
Name | Description |
---|---|
TElement | The type of wrapped |