Interface IToastComponent
- Namespace
- GroupeIsa.Neos.EndToEndTests.UI.Components
- Assembly
- GroupeIsa.Neos.EndToEndTests.UI.dll
Provides the functionalities of a toast component for automation.
[AbstractionComponent("toast")]
public interface IToastComponent : IAutomationComponent
- Inherited Members
Properties
CanClose
Gets a value indicating whether the toast can be close.
bool CanClose { get; }
Property Value
Message
Gets the displayed message.
string Message { get; }
Property Value
Title
Gets the displayed title.
string Title { get; }
Property Value
Methods
ClickOnButton(int)
Clicks on the button in the toast at the specified index.
bool ClickOnButton(int index)
Parameters
indexintIndex of the button.
Returns
- bool
A value indicating whether the click action has been performed.
ClickOnButton(string)
Clicks on the button in the toast whose text matches text.
bool ClickOnButton(string text)
Parameters
textstringText displayed on the button.
Returns
- bool
A value indicating whether the click action has been performed.
Close()
Closes the toast.
bool Close()
Returns
- bool
A value indicating whether the modal is closed.
FindButtonByIndex(int)
Finds the button in the toast at the specified index.
IButtonComponent? FindButtonByIndex(int index)
Parameters
indexintIndex.
Returns
- IButtonComponent
The button or
nullif not found.
FindButtonByText(string)
Finds the button in the toast whose text matches text.
IButtonComponent? FindButtonByText(string text)
Parameters
textstringText displayed on the button.
Returns
- IButtonComponent
The button or
nullif not found.
GetButtonByIndex(int)
Gets the button in the toast at the specified index.
IButtonComponent GetButtonByIndex(int index)
Parameters
indexintIndex.
Returns
- IButtonComponent
Button.
Exceptions
- AutomationException
No component was found.
GetButtonByText(string)
Gets the button in the toast whose text matches text.
IButtonComponent GetButtonByText(string text)
Parameters
textstringText displayed on the button.
Returns
- IButtonComponent
Button.
Exceptions
- AutomationException
No component was found.