Not sure how and if you can do this in Watir itself, but you could use
Watir to get the page source and then use Hpricot to get to it, like
this:
require 'hpricot'
page_source = Hpricot(@browser.html)
puts page_source.at("sp...@class = 'someclass']").get_attribute
("style")
This will output the style attribute, "somestyle".
Regards,
John
On Oct 7, 1:51 pm, kat <[email protected]> wrote:
> Given this:
> <span class="someclass" style="somestyle">sometext</span>
>
> how is it possible to get the span style "somestyle" in Watir?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---