Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:02:55+00:00 2026-06-11T20:02:55+00:00

Let say I have the following snippet of HTML5: <form method=get action=logginValidation.php> <input type=text

  • 0

Let say I have the following snippet of HTML5:

<form method="get" action="logginValidation.php">
    <input type="text" required="" name="username">
    <button class="btn" type="submit">Se connecter</button>
</form>

Using Selenium, I leave the field empty and press the button.
The form is not validated as I would expect, but how can I verify that this field is invalid and that there’s an associated message with this field.

Now one thing I haven’t investigated is that I’m using Twitter Bootstrap with the JavaScript libraries loaded. I have to double check if those librairies aren’t playing tricks on me and that the validation is really coming from the Firefox browser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:02:57+00:00Added an answer on June 11, 2026 at 8:02 pm

    From Selenium documentation:

    Currently the css selector locator supports all css1, css2 and css3
    selectors except namespace in css3, some pseudo classes(:nth-of-type,
    :nth-last-of-type, :first-of-type, :last-of-type, :only-of-type,
    :visited, :hover, :active, :focus, :indeterminate) and pseudo
    elements(::first-line, ::first-letter, ::selection, ::before,
    ::after).

    That mean that the :required, :invalid and :valid are not pseudo element on which you can select of interact with.

    I work around this limitation by doing a VerifyNotText for a text that is on the following page. Not ideal, but work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have the following snippet: snippet divt <div id=${1:div_id}> ${2:'some text'} </div>
Let's say I have the following code snippet. function test(id) { alert(id); } testChild.prototype
Let say I have the following method, is the method thread safe? public static
Let's say I have the following snippet: template <class T> void f(T arg) {
Let's say I have the following code snippet: int i; double value; for(i =
Let's say I have the following HTML snippet: <div abc:section=section1> <p>Content...</p> </div> <div abc:section=section2>
Let say I have the following code $(p).bind(click, function(){ alert( $(this).text() ); }); When
Let say I have the following layout: when I click on the edit text
Let's say I have following ASP.NET Web Form engine code, how can I express
So..Let's say I have the following code snippet function Rectangle(w,h){ this.width = w; this.height

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.