I think that if you look at how you can use profiles with both of them now it kind of leads you to believe that you can.
driver = Selenium::WebDriver.for :firefox, :profile => profile browser = Watir::Browser.new(driver) browser.goto "http://www.etsy.com" I would assume just adding it as driver options before you pass the driver to the watir browser? On Tue, Aug 23, 2011 at 11:49 AM, Dan Claudiu Pop <danclaudiu...@gmail.com>wrote: > Hey Alister, > > I just need access to methods that are not yet implemented in watir- > webdriver. For e.g: the cookie API which will be expanded soon in > watir-webdriver as per Jari reply. > My understanding is that using browser.driver i will have access to > those methods ? I will play with it and update the thread if so. > > Thank you, > Dan > > On Aug 23, 8:04 am, Alister Scott <alister.sc...@gmail.com> wrote: > > What exactly are you trying to do with both drivers. > > It works for me (see code below) but I can't understand why you'd want > to. > > > > ruby-1.9.2-p290 :003 > require "watir-webdriver" > > => true > > ruby-1.9.2-p290 :004 > b = Watir::Browser.new > > => #<Watir::Browser:0xe3859c1bd520f04 url="about:blank" title=""> > > ruby-1.9.2-p290 :005 > b.goto "www.google.com" > > => "http://www.google.com.au/" > > ruby-1.9.2-p290 :006 > b.driver.find_element(:name, 'q').send_keys > "hello" > > => "" > > ruby-1.9.2-p290 :007 > > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com<http://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com> > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com