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 6361723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:48:51+00:00 2026-05-24T23:48:51+00:00

I am writing a Selenium test to populate a date field on a webpage.

  • 0

I am writing a Selenium test to populate a date field on a webpage. The field is associated with a JQuery Date Picker. When I use the ‘type’ function to enter the date, the picker pops up. However, I cannot get it to go away, even if I shift focus, click on another field etc. I’ve tried the following till now…

# Python Code
# Setting the date in the field
sel.focus('tradeDate')
sel.type('tradeDate', '8/16/2011')

# Trying to get rid of the date picker popup, none of these work
sel.key_press('tradeDate', '5')          # Trying to TAB out
sel.focus('link=[Search Filters]')       # Trying to set focus to something else
sel.focus('searchDirectory')             # Trying to set focus to another text field
sel.fire_event('tradeDate', 'blur')
sel.click('//span[@onclick="toggleTradeDetails(\'14859\',this);"]')

None of the above seem to work. I am not actually trying to test JQuery. The ‘tradeDate’ field has its own onClick event define, which is what I am actually trying to test.

Thus, how can I get rid of the date picker pop-up. I’m using Selenium RC against IE 8

  • 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-05-24T23:48:52+00:00Added an answer on May 24, 2026 at 11:48 pm

    I solved this issue by using the mouseMove, mouseDown & mouseUp selenium commands to move to a different field on the page, which gets rid of the date picker

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

Sidebar

Related Questions

I am writing a Selenium test in PHP to check the performance of a
I'm writing a selenium grid test suite which is going to be run on
I am writing a selenium test and I need to assert that the page
I am writing selenium scripts on a complex web based application. To use a
I'm writing a selenium test for a GWT app. It uses the mouseover/ mousedown/mouseup
I'm writing an auto testing framework using Selenium. I am trying to test our
I'm writing a Selenium IDE script to test part of our website that opens
I am writing the selenium test. I have a label there Assign Designer and
I'm writing Selenium tests for an ASP application, and would like to test the
I'm writing a selenium test using the Play! Framework and some tests have common

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.