You could set an environment variable on the test system and read from that 
easily enough.  But that depends on the system being setup properly and is 
easier to break if someone goes and runs the tests against a system without 
that env variable set

On Thursday, March 1, 2012 8:40:23 AM UTC-8, Dan wrote:
>
> Actually  b.execute_script("return navigator.userAgent") is probably a 
> better option, but is there another?
>
> Thanks!
>
> Dan
>
> On Thursday, March 1, 2012 11:33:38 AM UTC-5, Dan wrote:
>>
>> Is there a built in way in watir-webdriver or ruby to get the version 
>> number of the browser that's running on the host machine?  I can probably 
>> scrape that off of  chrome://version/ and about:support in Firefox, but 
>> I'm wondering if someone knows of a better way.
>
>

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

Reply via email to