Hi, I needed to test the computed styles in Firefox. As Firewatir currently does not support constructs like
@browser.div(:id,div).style.align I looked into js_eval to do the trick To that end I wrote a small helper method def getstyle(element,style) str = "window.getComputedStyle( document.getElementById('# {element}'),null).getPropertyValue('#{style}');" @browser.js_eval(str) end which is used in the following way value = getstyle('id of element','font-style') etc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---