[wtr-general] Re: Cannot click Apply button after using file upload dialog box
On Friday, June 15, 2012 6:01:26 AM UTC-7, tkp wrote: I am using ruby 1.9 and watir 3.0.0. My problem still persists! What problem? you've never posted in this thread, I have no idea what your problem is. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Cannot click Apply button after using file upload dialog box
I would suggest you to use AutoIt software for getting the id of Apply button. I think you are not passing the right id, that's why it id not getting clicked... On Jun 16, 2012 12:53 AM, tkp trupty...@gmail.com wrote: I am using ruby 1.9 and watir 3.0.0. My problem still persists! On Tuesday, 31 March 2009 09:50:07 UTC+5:30, Shweta wrote: try with this $ie.button(:name,**ApplyAddDocument).click #try with Value also instead of name property or Watir.autoit.Send('{ENTER}') On Mar 31, 5:16 am, vladimir...@hotmail.com vladimir...@hotmail.com wrote: I need to select a document by clicking Browse... button. After selecting the file for download, I need to click Apply butoon. My code is simple # open Choose File Windows dialog box $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\ \vb.txt ) $ie.button( :id, applyButton ).click No complaint, but the button Apply is not clicked. I also tried: $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\ \vb.txt ) $ie.form(:name, ApplyAddDocument).submit got the same result. Please, help. Thanks, Vladimir Belorusets SQA Manager, Xerox -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Cannot click Apply button after using file upload dialog box
I am using ruby 1.9 and watir 3.0.0. My problem still persists! On Tuesday, 31 March 2009 09:50:07 UTC+5:30, Shweta wrote: try with this $ie.button(:name,ApplyAddDocument).click #try with Value also instead of name property or Watir.autoit.Send('{ENTER}') On Mar 31, 5:16 am, vladimir...@hotmail.com vladimir...@hotmail.com wrote: I need to select a document by clicking Browse... button. After selecting the file for download, I need to click Apply butoon. My code is simple # open Choose File Windows dialog box $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\ \vb.txt ) $ie.button( :id, applyButton ).click No complaint, but the button Apply is not clicked. I also tried: $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\ \vb.txt ) $ie.form(:name, ApplyAddDocument).submit got the same result. Please, help. Thanks, Vladimir Belorusets SQA Manager, Xerox -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Cannot click Apply button after using file upload dialog box
try with this $ie.button(:name,ApplyAddDocument).click #try with Value also instead of name property or Watir.autoit.Send('{ENTER}') On Mar 31, 5:16 am, vladimir...@hotmail.com vladimir...@hotmail.com wrote: I need to select a document by clicking Browse... button. After selecting the file for download, I need to click Apply butoon. My code is simple # open Choose File Windows dialog box $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\ \vb.txt ) $ie.button( :id, applyButton ).click No complaint, but the button Apply is not clicked. I also tried: $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\ \vb.txt ) $ie.form(:name, ApplyAddDocument).submit got the same result. Please, help. Thanks, Vladimir Belorusets SQA Manager, Xerox --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---