Table of Contents

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

bool

Message

Gets the displayed message.

string Message { get; }

Property Value

string

Title

Gets the displayed title.

string Title { get; }

Property Value

string

Methods

ClickOnButton(int)

Clicks on the button in the toast at the specified index.

bool ClickOnButton(int index)

Parameters

index int

Index 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

text string

Text 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

index int

Index.

Returns

IButtonComponent

The button or null if not found.

FindButtonByText(string)

Finds the button in the toast whose text matches text.

IButtonComponent? FindButtonByText(string text)

Parameters

text string

Text displayed on the button.

Returns

IButtonComponent

The button or null if not found.

GetButtonByIndex(int)

Gets the button in the toast at the specified index.

IButtonComponent GetButtonByIndex(int index)

Parameters

index int

Index.

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

text string

Text displayed on the button.

Returns

IButtonComponent

Button.

Exceptions

AutomationException

No component was found.