[wtr-general] Re: IE.attach doesn't work properly in the script

2009-08-18 Thread balbao
HI Dylan, Do i have to try the new version of Watir? On Aug 17, 11:02 am, balbao ramkrishn...@gmail.com wrote: Dylan, Adding require Watir/ie didn't help me either. ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] puts Watir::IE::VERSION 1.6.2 I use ruby 1.8.6 watir

[wtr-general] Re: IE.attach doesn't work properly in the script

2009-08-18 Thread balbao
' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ input_elements .rb:336:in `set' from (irb):11 I tried this from IRB. Not sure why firevent method is called post entering value in that text field. Need your help fellas. I'm stuck with this from the past two days. - Balbao

[wtr-general] Re: IE.attach doesn't work properly in the script

2009-08-16 Thread balbao
Folks, Have any of you faced similar kind of issue ?. This is a blocker for me...Need help. On Aug 14, 12:04 pm, balbao ramkrishn...@gmail.com wrote: HI, In my application, to enter a date for a field, we need to do it using the calendar icon. This is the only option to enter data

[wtr-general] IE.attach doesn't work properly in the script

2009-08-14 Thread balbao
ceased. No error was thrown even after one hour. I got this error, after closing the console manually Exit code: -1073741510. Not sure, why this surfaced. My hunch is that the console is expecting some sort of response. Balbao. --~--~-~--~~~---~--~~ You received

[wtr-general] Re: Wrong number of arguments error while passing a value to another function

2009-08-07 Thread balbao
(:title, Google Search).set($text) end Balbao On Aug 4, 2:03 pm, balbao ramkrishn...@gmail.com wrote: I'm trying to pass a value from one function to function and I get the foll;error, ruby callingfile.rb ./classfile.rb:15: warning: don't put space before argument parentheses C:/RUBY/lib

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-04 Thread balbao
Darryl - when I use $regno = oo.cell(row,6).to_i, I get the same error. The irony is this works fine in IRB, but executed as a script it returns zero. Dylan - to_i.to_s did the magic ! Thanks a bunch - Balbao require watir require rubygems require roo ie = Watir::IE.new oo = Openoffice.new

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-04 Thread balbao
Tried $regno = oo.cell(row,6).to_i in the script and got the same error. However, this works fine with irb. Do i need to include some more library files to get this one working... On Aug 4, 5:44 am, Darryl (gem dandy) Brown d-l- br...@roadrunner.com wrote: Hello  Balbao, $regno = oo.cell(row

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-04 Thread balbao
$ie.bring_to_front $ie.button(:value, /Google/).click Balbao On Aug 4, 3:59 am, Dylan mej...@gmail.com wrote: Add .to_i in the middle there, because like you said you aren't getting an integer back, so you have to make it one. So you end up with: $regno = oo.cell(row,6).to_i.to_s -Dylan

[wtr-general] Error while retrieving an integer from spreadsheet

2009-08-03 Thread balbao
it returns a float, i.e 12345 will get converted to 12345.0 which is an invalid input to the company field. Balbao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email