I am doing automatic test and i want to check the occurrence of an alert with the inscription "Good morning" (when i do assert). I am writing test in C# with selenium-webdriver. How should I find a reference to that object?
I am using: driver.FindElement(By. ......
Element:
<div class="alert alert-dismissable alert-info">
<button aria-hidden="true" class="close" data-dismiss="alert">×</button>
Good morning
</div>