When I enter details for user name and password and press the submit button, if given information is not valid there is an error message prompt so you have to click on the panel again to re-enter details.
My problem is, I have tried to click on any of the items on panel what obviously I can do manually on the website but not with my automation software because it is giving me an (Element is not clickable) exception. What is the solution for this problem? Any suggestions?
This is html of error message
<div id="msgError" class="col-md-12 text-center">Invalid Last Name!</div>
This is the element I tried to click to close the error message
//Get user name text box element
var box = Program.Driver.FindElement(By.XPath("//input[contains(@id, 'regFirstName')]"));
//Click on it
box.Click();
HTML:
<input class="form-control" data-val="true" data-val-required="The First Name field is required." id="regFirstName" name="FirstName" placeholder="First Name" type="text" value="">