You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How do I pick date from date picker (http://www.ksrtc.in/oprs-web/) #6
ghost changed the title [-]How do I pick date from [http://www.ksrtc.in/oprs-web/](this) website calendar[/-][+]How do I pick date from [this](http://www.ksrtc.in/oprs-web/) website calendar[/+]on Sep 9, 2017
I found date_of_departure to have input field set to readonly. This means the only way to populate it is to click on the date you want in the calendar.
It will require a little bit more code and logic from your, but there is nothings else to do, because that's how the site works.
P.S. I would recommend using XPATH to find a date to click
changed the title [-]How do I pick date from [this](http://www.ksrtc.in/oprs-web/) website calendar[/-][+]How do I pick date from date picker (http://www.ksrtc.in/oprs-web/)[/+]on Sep 9, 2017
The problem is that for each date picker the code will differ. It's possible to write a snippet for Bootstrap date picker or Materialize one, but I think it's almost impossible to write a generic one.
It shouldn't be that hard if you try. It will require a bit of selenium and understanding of how to locate elements by XPATH. Try it on your own and if you have some problems ask a question on Stack Overflow. If no one is willing to help you, feel free to share a link to the question at SO to my email.
Activity
[-]How do I pick date from [http://www.ksrtc.in/oprs-web/](this) website calendar[/-][+]How do I pick date from [this](http://www.ksrtc.in/oprs-web/) website calendar[/+]pythad commentedon Sep 9, 2017
I found
date_of_departureto have input field set toreadonly. This means the only way to populate it is to click on the date you want in the calendar.It will require a little bit more code and logic from your, but there is nothings else to do, because that's how the site works.
P.S. I would recommend using
XPATHto find a date to click[-]How do I pick date from [this](http://www.ksrtc.in/oprs-web/) website calendar[/-][+]How do I pick date from date picker (http://www.ksrtc.in/oprs-web/)[/+]pythad commentedon Sep 10, 2017
The problem is that for each date picker the code will differ. It's possible to write a snippet for Bootstrap date picker or Materialize one, but I think it's almost impossible to write a generic one.
It shouldn't be that hard if you try. It will require a bit of selenium and understanding of how to locate elements by
XPATH. Try it on your own and if you have some problems ask a question on Stack Overflow. If no one is willing to help you, feel free to share a link to the question at SO to my email.