views:

225

answers:

0

Hi,

I am working on ruby + selenium for automation testing of web application.

I have added the following in the 'env.rb'

 @browser = Selenium::Client::Driver.new(c['server_host'], c['server_port'], browser_type, c['root_url'], c['timeout']) 

I am able to execute the javascript code in "Mozilla 3" using following code.

total_count = @browser.get_eval(script);   

But same code is not working in the Internet Explorer 8 browser.

Please help!

Thanks.