Hi Everyone

I am trying to automate a web site called 'www.makemytrip.com' in that web
site there is a link:
http://www.makemytrip.com/hotels/#intl


The script for automating the selection of hotels and clicking on search
hotels is as follows:

require 'watir'

ie=Watir::IE.attach(:title,//)
ie.select_list(:id,'countryNameIntl').set('Singapore')
ie.select_list(:id,'cityNameIntl').set('Singapore')
ie.text_field(:id,'arrDateOway1').set '23/07/2009'
ie.text_field(:id,'deptDateOway1').set '26/07/2009'

#ie.link(:class,'nohoverBG').click
#ie.link(:class,'nohoverBG').fire_event('onclick')

#ie.div(:class,'search-hotel').fire_event('onmouseover')
ie.div(:class,'search-hotel').click
#ie.div(:class,'search-hotel').fire_event('onClick')


The problem is that when the script executes it shows the message 'Please
select the destination' , where as when i click on the button manually just
after the script has executed it clicks and go to the next page.

Can anyone here please help me out with this issue.

I would be grateful.

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to