ruby - Watir - working with CSS elements - Stack Overflow
stackoverflow.com
How do you apply the CSS element to image after checking the checkbox? If you add the class attribute for highlighting, I guess checking class attribute is the simplest way.
for example
browser.image.class_name =~ /foobar/
If using style attribute, I think you might need to check HTML itself, like
browser.image.html =~ /style=\"?foobar\"?/
#tips #ruby #watir #programming #pub
Collect and share the web
Get started for free