Categories

Netsparker Web Application Security Scanner

Handling Date Time Picker using Selenium

(adsbygoogle = window.adsbygoogle || []).push({});

In this chapter, we are going to discuss the how to handle date and time picker using Selenium Webdriver on HTML5 web pages. HTML5 has an inbuilt dateTime-local attribute for date-time input form field as shown below.

 

 

We can get the date time input field with the help of following HTML5 code.

<html> <head> <title>Handling Date Time Picker using Selenium</title> </head> <body> <form name="datetimedemo" method="post"> <h2>Handling Date Time Picker using Selenium</h2>

Continue reading…