V
Vani
Hello every one,
I am facing problem in Xpath query i have written to access a button
tag
in watir.
Following is the code i have written.
-------------------------------------------------------------------------
require 'watir'
include Watir
ie = IE.new
ie.goto("http://www.travelocity.com/")
ie.maximize()
ie.link
text,"Flights").click
ie.radio
value, "oneway").set
ie.text_field
name, "leavingFrom").set("Pune")
ie.text_field
name, "goingTo").set("Mumbai")
ie.text_field
name, "leavingDate").set('10/27/2005')
ie.button
name,"submit").click
ie.link
text, "additional fees").click
sleep 5
iePopup = IE.attach
title, /Explanation of Taxes/)
iePopup.close()
# I am facing problem on the below line of code
ie.button
xpath,"//*[@id='tfGrid']/tr[4]/td[6]/div[1]/button").click
Can anyone tell me where I am going wrong?
I am facing problem in Xpath query i have written to access a button
tag
in watir.
Following is the code i have written.
-------------------------------------------------------------------------
require 'watir'
include Watir
ie = IE.new
ie.goto("http://www.travelocity.com/")
ie.maximize()
ie.link
ie.radio
ie.text_field
ie.text_field
ie.text_field
ie.button
ie.link
sleep 5
iePopup = IE.attach
iePopup.close()
# I am facing problem on the below line of code
ie.button
Can anyone tell me where I am going wrong?