That same code will work in watir-classic.
The execute_script method exists in watir-classic and navigator.userAgent
is supported in all major browsers
(http://www.w3schools.com/jsref/prop_nav_useragent.asp).
- Justin Ko
On Monday, January 28, 2013 11:49:16 AM UTC-5, Dan wrote:
>
> Is there a good way to get the user agent using the watir-classic gem?
> With webdriver I use something like b.execute_script("return
> navigator.userAgent"), but that's not going to work with watir-classic.
--
--
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]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.