[ 
http://jira.openqa.org/browse/WTR-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zeljko closed WTR-291.
----------------------

    Resolution: Won't Fix

If this is still a problem, please report it here: 
https://github.com/watir/watir-classic/issues

> Add cross-browser method of reading body attributes
> ---------------------------------------------------
>
>                 Key: WTR-291
>                 URL: http://jira.openqa.org/browse/WTR-291
>             Project: Watir
>          Issue Type: New Feature
>          Components: FireWatir
>    Affects Versions: Future
>         Environment: x
>            Reporter: Jeff Fry
>            Priority: Major
>             Fix For: Future
>
>
> For a page with source like this: <body ajax="ajaxStart"> we need a way to 
> read this attribute that works across browsers.
> Currently in IE, one can do something like 
> browser.document.body.getAttribute('ajax')  ...where 'ajax' is whatever the 
> attribute's name is. This doesn't work with FF though.
> On irb, Jarib suggested:
> [12:26] <jarib> what we want is browser.body.attribute_value("ajax")
> [12:26] <jarib> where browser.body #=> #<Watir::Body ...>
> [12:27] <jarib> and we're then calling Element#attribute_value for arbitrary 
> attributes

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to