I'm trying to pass the values into the form. It is passing the values in the normal text box, I couldn't succeed in the onclick datepicker function
Below is the code:
import urllib
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
driver = webdriver.PhantomJS(executable_path="C://Users//phantomjs//bin//phantomjs.exe")
driver.get('https://enquiry.icegate.gov.in/enquiryatices/sbTrack')
select = Select(driver.find_element_by_name('sbTrack_location'))
select.select_by_value("MUNDRA SEA (INMUN1)")
sb_no = driver.find_element_by_name("SB_NO")
sb_no.send_keys(7353156)
sb_dt = driver.find_element_by_name("SB_DT")
sb_dt.send_keys("2017/07/14")
driver.save_screenshot("test1_scr.png")
I am unable to send keys to tag with readonly input property from here.
<input type="text" name="SB_DT" value="" readonly="readonly" id="sbDATE">