Hi All I am not able to execute java script in below lines of code...
"<select name="MIR-CVG-STBL-1-CD" onChange="onChangeTerm('MIR-CVG- STBL-1-CD','MIR-CVG-MAT-XPRY-DUR')" onfocus="enterField(this)" size="1" stype="Selection">" I have used this method -> "execute_script(source) " buts its showing error Error in method -> "undefined method `execute_script' for #<Watir::Frame:0x31ef908> (NoMethodError)" require 'Watir' ie=Watir::IE.attach(:title,//) ie.frame(:index,2).frame(:id,'ContentFrame').select_list(:name,'MIR- CVG-STBL-1-CD').select "11 Years" ##source= onChange="onChangeTerm('MIR-CVG-STBL-1-CD','MIR-CVG-MAT-XPRY- DUR')" source="onChangeTerm('MIR-CVG-STBL-1-CD','MIR-CVG-MAT-XPRY-DUR')" ie.execute_script(source) Kindy let me know.. Thanks in advance... :) Pallavi Sharma --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---