Hi Yashim, you can select date from a datepicker using following piece of code:
driver = webdriver.FirefoxDriver();
driver.get("http://jqueryui.com/datepicker/");
driver.switchTo().frame(0);
driver.implicitly_wait(2)
driver.maximize_window()
driver.findElement(By.id("datepicker")).click();
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
dateWidget = driver.find_element_by_id("ui-datepicker-div")
rows = dateWidget.find_elements_by_tag_name("tr")
columns = dateWidget.find_elements_by_tag_name("td")
for cell in columns:
if cell.gettext().equal('10'):
cell.find_element_by_link_text('10').click()
break
This should work.
To know more, It's recommended to join our Python Training in Chennai today.