Good morning:
Our application permits a user to import a site file. I am able to attach
to the pop up utility, but I am not able to find the text_area. When we do
a ie.show_all_objects we are returned this
file name=file id= value=
alt= src=
The ruby code looks like this:
ie2 = IE.attach(:title, "Upload Site Data")
assert(ie2.contains_text('Import the site data file by
navigating to it using the Browse dialog. When finished, click Import.'))
ie2.show_all_objects
sleep 5
ie2.text_field(:name, "file").set(
"c:\Functional_Test_site_data.csv")
Here is a screen shot of the pop up. I can sent the html if needed.
(Embedded image moved to file: pic29641.jpg)
Here is the error message:
1) Error:
test1(SCP_Account_Mgmt_2):
NoMethodError: undefined method `text_file' for #<Watir::IE:0x2c4da60>
C:/SBC10/sbc/test/Functional/scp_Account_Mgmn_2.rb:119:in `test1'
How do I get Ruby to import this file?
Thanks in advance for your assistance!
Carl
--
"NOTICE: The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential. If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected."<<attachment: pic29641.jpg>>
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
