M
Madu Nar
Hi,
I have a problem here.
I have a ruby code that opens Google, types "book stores" and clicks on
"Search" button.
# Code Snippet Begins here
require 'net/http'
require 'uri'
require 'watir'
term="book stores"
url1 = 'http://www.google.com'
ie = Watir::IE.start(url1)
ie.text_fieldname, "q").set(term)
ie.buttonname, "btnG").click
# Code Snippet Ends here
Now I need to obtain the value of the response URL generated by this
search and assign it to a variable.
[ i.e. http://www.google.com/search?hl=en&lr=&q=book+stores]
How do I read the HTTP Header information for the "location" attribute?
Any help is greatly appreciated.
Thanks,
Madu
I have a problem here.
I have a ruby code that opens Google, types "book stores" and clicks on
"Search" button.
# Code Snippet Begins here
require 'net/http'
require 'uri'
require 'watir'
term="book stores"
url1 = 'http://www.google.com'
ie = Watir::IE.start(url1)
ie.text_fieldname, "q").set(term)
ie.buttonname, "btnG").click
# Code Snippet Ends here
Now I need to obtain the value of the response URL generated by this
search and assign it to a variable.
[ i.e. http://www.google.com/search?hl=en&lr=&q=book+stores]
How do I read the HTTP Header information for the "location" attribute?
Any help is greatly appreciated.
Thanks,
Madu