Hi, I tried to execute a few line of ruby watir scripts in a cgi script:
#!/ruby/bin/ruby -w require 'cgi' require 'stringio' require 'rubygems' require 'mysql' require 'watir' require 'time' cgi = CGI.new serverIpValue = cgi.params['serverIp'][0] mailIpValue = cgi.params['mailIp'][0] mediaDrive = cgi.params['mediaDrive'][0] retension=cgi.params['retension'][0] puts "Content-type: text/html" puts "<html>" puts "<body>" puts "serverIpValue:#{serverIpValue}<p>" puts "mailIpValue:#{mailIpValue}<p>" puts "mediaDrive:#{mediaDrive}<p>" puts "retension:#{retension}<p>" puts "Start initial system state check and system configuration...<p>" begin_time=Time.now ie = Watir::IE.new ie.goto "#{serverIpValue}" if ie.text.include?("Password:") puts "login in as user admin<p>" ie.text_field(:name, "j_username").set "admin" ie.text_field(:name, "j_password").set "admin" ie.button(:value, "Log in").click puts "ie.down_load_time<p>" end ie.close if ie puts "Initial account login passed<p>" puts "</body>" puts "</html>" -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com