Not able to find the xpath (css) for error message

70 views
Skip to first unread message

Gaurang shah

unread,
Jul 9, 2016, 1:47:40 AM7/9/16
to Selenium Users
Hi Guys, 

I am trying to test one of the field for field validation error message. The problem is I am not able to find the xpath or css of error message. I am not even able to search the string anywhere in the whole html page. 

Can someone help me identify this element. 

Do not provide anything and press enter. 

I want to identify the xpath for field validation error message "Please enter an email address." 

Following won't work. because this text appears in javascript as well and will always be present. 

//*[contains(text(),'Please enter an email address.'] 

⇜Krishnan Mahadevan⇝

unread,
Jul 10, 2016, 1:22:26 AM7/10/16
to Selenium Users
Gaurang,

I don't see the validation error message "Please enter an email address". 
I tried it on Chrome and Firefox. In both the cases, I only see the HTML5 validation error message which reads "Please fill out this field".

You might want to see if the below helps :





Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/db2ef79e-fd7b-4cd4-b168-7aa3deeb7da8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages