1. What you report is a bug. It should work with Safari. It does on my
machine.
derrida:~ bret$ irb
>> require 'watir'
=> true
>> Watir::Browser.default = 'safari'
=> "safari"
>> Watir::Browser.new
=> #<Watir::Safari:0x11218e8 @scripter=#<Watir::AppleScripter:0x111b344
@typing_lag=0.08, @app=app("/Applications/Safari.app"),
@document=app("/Applications/Safari.app").documents[1],
@js=#<Watir::JavaScripter:0x111b31c>>>
>>
2. If you don't want to use FireWatir at all, you should be able to just
install safariwatir and commonwatir (directly).
derrida:~ bret$ gem uninstall firewatir
Select gem to uninstall:
1. firewatir-1.2.1
2. firewatir-1.6.1
3. All versions
> 3
Successfully uninstalled firewatir-1.2.1
Successfully uninstalled firewatir-1.6.1
derrida:~ bret$ irb
>> require 'watir'
=> true
>> Watir::Browser.default = 'safari'
=> "safari"
>> Watir::Browser.new
=> #<Watir::Safari:0x113a3d4 @scripter=#<Watir::AppleScripter:0x1133ed0
@app=app("/Applications/Safari.app"),
@document=app("/Applications/Safari.app").documents[1],
@js=#<Watir::JavaScripter:0x1133ea8>, @typing_lag=0.08>>
>>
Bret
John Kolokotronis wrote:
> Thanks for the reply Bret. I hadn't installed Firewatir yet and it
> seems commonwatir is only installed with that, not with Safariwatir.
> However, after installing both, the methods do work, but at least in
> irb, even after setting Watir::Browser.default = "safari',
> Watir::Browser.new continues to launch Firefox?
>
> On Feb 9, 8:37 pm, Bret Pettichord <[email protected]> wrote:
>
>> John Kolokotronis wrote:
>>
>>> The wiki also still mentions that Mac installation is done with:
>>>
>>> sudo gem update --system
>>> sudo gem install firewatir
>>> sudo gem install safariwatir
>>>
>>> But that doesn't give you common Watir methods, like
>>> Watir::Browser.new - so in that context, how do you use
>>> "Watir::Browser.default = 'safari'"?
>>>
>> If you are not getting these methods in this scenario, that is a bug. Is
>> that really what is happening?
>>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---