Hi,
I'm having trouble with a file_field element. I've got this set of methods
for referring to and setting the value of a file field:
def file_name
@browser.frame.file_field(id: 'fileName')
end
def file_name=(filename)
file_name.set filename
end
The problem is that neither work. :)
I opened a debug console inside the method that calls those. From there,
I'm able to use @browser.frame.file_field(id: 'fileName') and the related
set method without problems, but if I call the file_name method it returns
nil.
I'm using watir-webdriver 0.5.6 on Linux and Firefox.
Any help is appreciated.
Thanks,
Cassiano Leal
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]