I've been using the Excel interface class, and am able to insert
blanks into a text field if a cell is blank:

http://wiki.openqa.org/display/WTR/Excel+interface+class



On Jun 13, 11:34 pm, Chandu80 <[email protected]> wrote:
> Hi All,
> I have written a script which requires me to insert a blank value into
> a textbox on webpage.
> The script should take this blank value from the  spreadsheet and then
> insert it into the textbox.(As this is a part of the negative test
> scenario)
> When I leave a column in a spreadsheet blank and try to run the
> script,
> I get the following error.
>
>  c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> input_elements.rb:390:in `
> limit_to_maxlength'c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
> watir/input_el
> ements.rb:338:in `set'C:/Lmg_test/ruby/11.06.2010/driver/
> cfg_snmp_access2.rb:84
>
>  undefined method `length' for nil:NilClass
>
> Kindly let me know how to deal with this and how blank value can be
> taken as an input from the spreadsheet without error.
>
> Thanks in Advance
>
> Regards
> Chandrika

-- 
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: [email protected]
To unsubscribe: [email protected]

Reply via email to