M
michael
Could anybody help with the code below in Ruby / watir??
-------------------------------------------------------------------------------------------------------------------------------------------
require 'watir'
ie = Watir::IE.start("http://manymoandzo/cgi-bin/arp3/arp3.pl")
ie.text_fieldname, "name").set("user id")
ie.text_fieldname, "password").set("passwd")
ie.formname, "form").submit
ie =
Watir::IE.start("http://manymoandzo/cgi-bin/arp3/arp3.pl?a0=aut&a1=edi&a2=edi&mid=20")
$Path = "c:\test.htm"
ie.text_fieldname,'html_text').set($Path)
------------------------------------------------------------------------------------------------------------------------------------------
what I am struggling with is to insert whole content in test.htm to the
field 'html_text' in the web site..
this 'html_text' field is a big field, and I need to copy what is in
test.htm into 'html_text' field using watir.. I have about 600 of
these files.. which i would like to accomplish using watir..
but it never works out.. it is just writing... c:\test.htm in
'html_text' field, and what I want this watir program to do is to write
the text inside test.htm file in to the text_field, html_text.
i struggled so many hours.. and any help will be greatly appreciated.
thanks.
troubled michael..
-------------------------------------------------------------------------------------------------------------------------------------------
require 'watir'
ie = Watir::IE.start("http://manymoandzo/cgi-bin/arp3/arp3.pl")
ie.text_fieldname, "name").set("user id")
ie.text_fieldname, "password").set("passwd")
ie.formname, "form").submit
ie =
Watir::IE.start("http://manymoandzo/cgi-bin/arp3/arp3.pl?a0=aut&a1=edi&a2=edi&mid=20")
$Path = "c:\test.htm"
ie.text_fieldname,'html_text').set($Path)
------------------------------------------------------------------------------------------------------------------------------------------
what I am struggling with is to insert whole content in test.htm to the
field 'html_text' in the web site..
this 'html_text' field is a big field, and I need to copy what is in
test.htm into 'html_text' field using watir.. I have about 600 of
these files.. which i would like to accomplish using watir..
but it never works out.. it is just writing... c:\test.htm in
'html_text' field, and what I want this watir program to do is to write
the text inside test.htm file in to the text_field, html_text.
i struggled so many hours.. and any help will be greatly appreciated.
thanks.
troubled michael..