For example, if I want to use python-selenium to select a specific check-in and check-out date in www.priceline.com, what should I do?
This is the calender html (or you can find it on www.priceline.com)
<input name="checkInDate" pclnfield="ts" pclnoptional="true" preformat="" pclnprepop="false"
pclnfocusnext="hotel-checkout" type="text" id="hotel-checkin" placeholder="Choose Date"
autocomplete="off" class="hasDatepicker">
This is my code:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.select import Select
url = 'http://www.priceline.com/' #
driver = webdriver.Firefox()
driver.get(url)
sleep(3)
select = Select( driver.find_element_by_id('hotel-checkin') )
Then what?