highlight method was broken in watir 1.6.7+ -------------------------------------------
Key: WTR-478 URL: http://jira.openqa.org/browse/WTR-478 Project: Watir Issue Type: Bug Components: Wait Affects Versions: 1.8.0, 1.6.7 Environment: Windows XP/IE 6, Windows 7/IE 9 Reporter: Sergey Erokhin method highlit doesn't work in watir 1.6.7+ style.backgroundColor - redonly? watir 1.8.1 i try to investigate in element.rb 206 begin 207 @original_color ||= style.backgroundColor 208 style.backgroundColor = @container.activeObjectHighLightColor 209 rescue 210 @original_color = nil 211 end when i comment line 209 and 210 result C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/element.rb:208:in `method_missing': (WIN32OLERuntimeError) OLE error code:0 in <Unknown> <No Description> HRESULT error code:0x80020003 Member not found. from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/element.rb:208:in `highlight' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/input_elements.rb:370:in `set' from test_hightlit.rb:9 source code 1.6.7+ def_wrap_guard :currentstyle # return current style instead of the inline style of the element alias style currentstyle 1.6.5 # return the style of the element def_wrap_guard :style my fix (i am not quite sure about absolute correctnes) replace alias style currentstyle to def_wrap_guard :style it works for me on both configuration. bug introduced in commmit https://github.com/bret/watir/commit/ebf38031c92c800ca0b0897706d10d9c4240a4a7#watir/lib/watir/element.rb -- 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 Wtr-development@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development