And your class also shows leakage: http://en.wikipedia.org/wiki/Leaky_abstraction
Pushing a free flowing language (e.g. English) - in my opinion - is also a bad move. Have a look at this: http://code.google.com/p/cucumber-and-watir/ If anyone wants to use Rspec Cucumber, I will gladly guide them through it on this list. Aidy On 02/02/2009, aidy lewis <aidy.le...@googlemail.com> wrote: > What is the purpose of the BrowserFactory class? Has not Watir got its > own 'factory' in Common Watir? > > > Aidy > > > On 02/02/2009, ab.ostrow...@gmail.com <ab.ostrow...@gmail.com> wrote: > > > > Hi there! > > > > def setup > > @browser = Wayn::BrowserFactory.create > > @user = Wayn::User.new(@browser) > > @user.login('tomcio', 'haslo') > > end > > > > where > > > > class BrowserFactory > > def BrowserFactory.create > > browser = Watir::Browser.new > > > > begin > > browser.speed = :zippy > > browser.bring_to_front > > rescue NoMethodError > > end > > > > browser > > end > > end > > end > > > > I have installed: > > Ruby Version 1.8.6 > > Installer Version 186-27 > > firewatir 1.6.2 > > commonwatir 1.6.2 > > > > I have following error: > > No method error: undefinied method 'goto' for # <Watir::IE:0x3294480> > > > > I run the same script on another machine and it works therefore I dont > > know whats cousing this error. > > Thanks in advance > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---