Hi Sachin! Two of your lines are commented out - has that always been the case? Also, you're assigning the @browser variable twice, which will launch two browser sessions and the second (which will be on google.com) will be assigned to @browser.
Both of your un-commented lines of code should work on their own - have you tried them in IRB? If so, what was the result? Can you please include which line number of your method is failing? -Tiffany On Jul 23, 1:11 am, sachin marne <[email protected]> wrote: > Hi, > > I am new to watir. thefollwing method was working fine before.But > suddenly i am getting this error message. > > def visit > @browser = Watir::Browser.new > @browser = Watir::Browser.start("http://google.com") > #[email protected]('http://google.com') > #[email protected]('http://google.com') > end > > on calling this method i m getting following error message. > > WIN32OLERuntimeError: failed to create WIN32OLE object from > `InternetExplorer.Application' > HRESULT error code:0x80004005 > Unspecified error > > NoMethodError: undefined method `goto' for nil:NilClass > > please help me. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
