[wtr-general] Re: Issue with Select List

2009-07-08 Thread Powerglide
Hi, Did you try issuing onblur or onchange ie.select_list(:name,ABC).select(value) ie.select_list(:name,ABC).fire_event(onblur) # if this does'nt work then try ie.select_list(:name,ABC).fire_event(onchange) Regards, Bhaskar On Jul 7, 11:10 pm, Ravinder Singroha

[wtr-general] Re: send attachments from outlook

2009-07-08 Thread Powerglide
Hey khaja, You can't use watir to send mails.but you can use net/smtp to do so. I have given a sample code which will use smtp to send emails, but this will not send attachments,( you need to tweak the message type etc i guess.) require 'net/smtp' myMessage = MYMESSAGE

[wtr-general] Re: Need Help on Regular Expression

2009-03-19 Thread Powerglide
Hi Nagamani, you could do it simply by having the following code: #...@b - Substitute @b with whatever you used for your browser instance #click on the ascending sort button - ?? assert(@b.url =~ /ascending/) - for ascending sorting #click on the descending sort - button ?? assert(@b.url =~

[wtr-general] Re: Using Aptana IDE

2009-02-25 Thread Powerglide
Hi, If you try to execute the test from a command prompt you will still get the same error message.The problem is not with Aptana. It is with win32 gem... by best workaround would be to.. 1)uninstall ruby, then 2) reinstall ruby then do a 3) gem update --system (which will get you to gem1.3

[wtr-general] Re: fetching a value from database

2009-02-19 Thread Powerglide
Assuming, your connectstring etc are fine, your query might get multiple results -- like 'test%' so you can modify your query as result=test_db.select_all(select ObjectID from testTable where Name like 'test' limit 1) this will give only one , the first name (which is 'test') Hope this helps.