remove "include 'watir/browser'"

Shylaja wrote:
> Hi
>  Iam trying to use the Browser class as follows with Watir 1.6.2 and
> facing a strange error
>
> require 'rubygems'
> require 'hpricot'
> require 'open-uri'
> require 'watir'
> include 'watir/browser'
> Watir::Browser.default = 'ie'
>
> appUrl = "http://localhost:57200/index.html";
> doc = Hpricot(open(appUrl))
> elements = doc.search("//*")
>
> browser.element_by_xpath("//a...@href=/test]").click()
>
> When i try to execute the above script i get the following error
>   
>> ruby parseHtml.rb
>>     
> parseHtml.rb:5: uninitialized constant Watir::Browser (NameError)
>   
>> Exit code: 1
>>     
>
> any tips please?
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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