I want to test the following application: https://romashov.tech/chat
This is the code of my MainPage:
using Atata;
using _ = Chat.Tests.Model.MainPage;
namespace Chat.Tests.Model
{
[Url("")]
public class MainPage : Page<_>
{
[FindById("send")]
public Button<_> Send { get; private set; }
}
}
When I run my test I have the following exception:
OpenQA.Selenium.UnhandledAlertException : unexpected alert open: {Alert text : Your name:} (Session info: chrome=75.0.3770.100)
How I can define it in page class? How I can put a nickname in this alert?