Currently I’m developing a flight ticket search engine(pretty similar to this-http://www.momondo.com/) which will gather all the information of a site. I’ m done with the grab the info from the website.
So for each, search result,it do consist of a button like the site (Select) which will let user to redirect to according site to book the ticket.
Scenario:
on my site, I search for a location(from-to) ,then it comes out with lists of search result. I found out a search result that suit me and I click the ‘Book’ button and it should be redirect to AirAsia flight ticket with the data filled(like location from-to) on the Airasia site,then can direct book from the AirAsia site.
As I know for ruby on rails, there is a watir gem to simulate the user. But how to achieve this tasks? I do know when direct to the specific site , it need to pass all the parameters to the site in order to simulate or perform searching on the site.
any advice are appreaciated 😀 It’s RoR project.
You could load the remote website in an iframe on the page and then use JavaScript to fill in the required fields.
AFAIK there isn’t an easy way to fill in the fields on a remote site without using server side code on the remote site.