Skip to main content

Send and receive datetime objects from web forms.

Project description

Datetime-Selenium allows you to send/retrieve datetime.datetime objects to/from web forms using Selenium.


$ pip install datetime-selenium


First, clone an example file from the Datetime-Selenium repo.

$ curl --output form.html

Let's send the current date and time to all input in the form.

from datetime_selenium import send_datetime

from selenium.webdriver import Chrome

from datetime import datetime

driver = Chrome()

datetime_ = datetime.utcnow()

css_selectors = (
for selector in css_selectors:
    input_ = driver.find_element_by_css_selector(selector)
    send_datetime(input_, datetime_)

You'll see the form filled in in your selenium browser.


  author = {Dillon Bowen},
  title = {Datetime-Selenium},
  url = {},
  date = {2020-06-29},


Users must cite this package in any publications which use it.

It is licensed with the MIT License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for datetime-selenium, version 0.0.0
Filename, size File type Python version Upload date Hashes
Filename, size datetime_selenium-0.0.0-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size datetime-selenium-0.0.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page