Watir::Element#style returns only inline style
----------------------------------------------

                 Key: WTR-444
                 URL: http://jira.openqa.org/browse/WTR-444
             Project: Watir
          Issue Type: Bug
          Components: HTML Controls
    Affects Versions: 1.6.5
         Environment: All environments.
            Reporter: Jarmo Pertman


Currently Watir::Element#style returns only the style associated with the 
element inline thus:
<div style="width: 100px"></div>

would work:
browser.div(:index => 1).style.width

But when CSS is defined in HTML or CSS file, then this method would return 
empty string. CurrentStyle should be used instead of Style.

You can read more about it from:
http://msdn.microsoft.com/en-us/library/ms535231(VS.85).aspx

Get the fix from 
http://github.com/jarmo/watir/commit/15c420eb43f8b37946e2dbbcbc92f0eefa72c53e 
with tests.

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