ruby - Imputing floots into Watirs text field -
i trying imput data array web site, getting error. beleive error means can't put floots text fields, i changed floot string. again did not work. have included part of code felt relevant.
blockquote
eee = watir::browser.new eee.goto(fulllink) eee.text_field(:name => "txtattr").set headings[j] eee.wait p = j + 1 strings = body.at(0).at(p) string (strings) eee.text_field(:name => "txtvalue").set strings eee.wait eee.link(:index => 4).click eee.wait eee.close end += 1 c:\users\pure.itloaner1-12\google drive\ruby>ruby exst.rb hello world alpha numeric unit # tables filled 200.0 c:/ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/input_ elements.rb:356:in `characters_in': undefined method `each_char' 200.0:float (nomethoderror) c:/ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c lassic/input_elements.rb:337:in `type_by_character' c:/ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-c lassic/input_elements.rb:299:in `set' exst.rb:92:in `<main>'
try if changing string(strings) strings = string(strings) works.
Comments
Post a Comment