-1

I want to retrieve information from a form I have created using HTML and CSS to my Ruby program and apply some operation and redirect to another page accordingly. Since I am a beginner so I don't have much knowledge about web development so if please anyone could help!!!

Sarthak
  • 25
  • 4

1 Answers1

0

Just guessing what you want, if not correct please provide more info and the meanigfull parts of what you tried in code.

Take a look at the accepted answer for my question at https://stackoverflow.com/questions/11724201/use-browser-as-gui-in-ruby

Here part of what Justin Ko answered

require 'watir'

b = Watir::IE.new
begin
    b.goto('file:///C:/Documents%20and%20Settings/Setup/Desktop/test.htm')
    begin
        sleep(5)
    end until b.button(:id, 'submit').value != "OK"
    name = b.text_field.value
ensure
    b.close
end
puts name
Community
  • 1
  • 1
peter
  • 41,770
  • 5
  • 64
  • 108