[wtr-general] Re: Need a sample code to import test data from Excel sheet

2009-08-11 Thread Smruti Ranjan Kar
require 'win32ole' $application = WIN32OLE.new('Excel.Application') generalworksheet=$application.Workbooks.Open(Dir.getwd+\\Testdata\\testdata.xls).Worksheets(General) generalworksheet.Activate $test_site=generalworksheet.Cells(6,2).value On Tue, Aug 11, 2009 at 1:14 PM, zakir hussain

[wtr-general] Re: Issue with a PopUP and Click_No_Wait

2009-08-09 Thread Smruti Ranjan Kar
Hi Pallavi, That click_no_wait worked fine for me. Just check your Ruby version. (click_no_wait does not work with ruby186-27_rc2: known defect) I am using Ruby186-26_Watir1.6.2 On Sun, Aug 9, 2009 at 1:28 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Need some urgent help: Go to

[wtr-general] Re: How to judge the button or link exists in the page?

2009-08-07 Thread Smruti Ranjan Kar
assert($browser.link(:text,Signout)exists?),The sign-out link is absent) On Fri, Aug 7, 2009 at 2:25 PM, yuping zhong littlezhong...@gmail.comwrote: Dear all, Right now, I want to use the watir to check the button or link if exists in the page. Who can help me? Such as, I write the watir

[wtr-general] Re: How to judge the button or link exists in the page?

2009-08-07 Thread Smruti Ranjan Kar
And what you need will be: assert($browser.link(:text,Signout)exists?),login failure) puts Login was successful On Fri, Aug 7, 2009 at 2:29 PM, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: assert($browser.link(:text,Signout)exists?),The sign-out link is absent) On Fri, Aug 7, 2009

[wtr-general] Re: undefined method `{ENTER}' for #Watir::IE:0x3ee7b9c

2009-08-07 Thread Smruti Ranjan Kar
use $ie.send_keys({ENTER}) On Fri, Aug 7, 2009 at 2:33 PM, Marlon marlonmoja...@gmail.com wrote: Can anyone help me with this error? I'm trying to press ENTER key focused on a text box. code: $ie.send({ENTER}) --~--~-~--~~~---~--~~ You received this

[wtr-general] Re: clicking ok on popups

2009-08-04 Thread Smruti Ranjan Kar
If I'm getting you, is this the requirement ? - You click 'Proceed', Popup A appears - Click 'OK', Popup B appears - Click 'OK', New browser opens with a popup - Click 'OK' - Click 'Save' - Click 'OK' on the confirmation And what are the type of pop-ups at different steps ? i.e: modal, JS, new

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Smruti Ranjan Kar
Either use require 'watir/contrib/enabled_popup' and hwnd1 = browser.enabled_popup(5) Or use AutoITand WinGetHandle method On Tue, Aug 4, 2009 at 7:55 PM, Vale vsant...@gmail.com wrote: Hello everyone Im new at ruby/watir and im trying to do a performance test. To do this I have to run a

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Smruti Ranjan Kar
' hwnd1 = $ie.enabled_popup(10) $ie.link(:url, the url).click and I get this error message: Timed out after 10.5 seconds what can i do? thks valeria pd.: same error if I put: $ie.link(:url, the url).click hwnd1 = $ie.enabled_popup(10) 2009/8/4 Smruti Ranjan Kar

[wtr-general] Re: concurrent problems in pop ups

2009-08-04 Thread Smruti Ranjan Kar
/8/4 Smruti Ranjan Kar smrutiranjan@gmail.com Either use require 'watir/contrib/enabled_popup' and hwnd1 = browser.enabled_popup(5) Or use AutoITand WinGetHandle method On Tue, Aug 4, 2009 at 7:55 PM, Vale vsant...@gmail.com wrote: Hello everyone Im new at ruby/watir and im

[wtr-general] Re: Java Script pop-ups handling in WATIR

2009-07-17 Thread Smruti Ranjan Kar
seconds after your click_no_wait call. Hope this helps! -Dylan On Jul 16, 8:19 am, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: Hi Charley, I'm using ruby186-27_rc2 C:\Documents and Settings\userruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] On Thu, Jul

[wtr-general] Re: Java Script pop-ups handling in WATIR

2009-07-16 Thread Smruti Ranjan Kar
Hi Charley, I'm using ruby186-27_rc2 C:\Documents and Settings\userruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] On Thu, Jul 16, 2009 at 7:58 PM, Charley Baker charley.ba...@gmail.comwrote: Try click! instead of click_no_wait, which specific version of Ruby are you using,

[wtr-general] Re: Time to learn Watir

2009-07-10 Thread Smruti Ranjan Kar
I also started using it since last couple of months. I did have automation knowledge in QTP for 6 months, but then this thing fascinated me more. I am still learning, but I can suggest a start - Install Ruby and learn basics. Practice in irb (brush up your OOP concepts) - Then focus on learning