[wtr-general] Re: Radio button

2009-02-16 Thread jam
Thanks it works fine. Regards, jam On Feb 17, 12:19 pm, wesley chen wrote: > Why don't you try  $ie.radio(...).checked? > > Thanks. > Wesley Chen. > > On Tue, Feb 17, 2009 at 2:44 PM, jam wrote: > > > Hi, > > > how to check whether radio button is set or not. I tried with set?. > > does't work

[wtr-general] Re: Radio button

2009-02-16 Thread wesley chen
Why don't you try $ie.radio(...).checked? Thanks. Wesley Chen. On Tue, Feb 17, 2009 at 2:44 PM, jam wrote: > > Hi, > > how to check whether radio button is set or not. I tried with set?. > does't work. How to do this? > > Thanks, > Jam > > > --~--~-~--~~~---~--~--

[wtr-general] Radio button

2009-02-16 Thread jam
Hi, how to check whether radio button is set or not. I tried with set?. does't work. How to do this? Thanks, Jam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send ema

[wtr-general] Re: How to change an excel file into write mode

2009-02-16 Thread Walter Kruse
It may be that you are not exiting Excel correctly and that an instance of the Excel object is still locking the file. Look in your task manager if there are any instances of excel.exe after you have closed all the Excel windows. If this is the problem you should use something like application.

[wtr-general] How to make the regular expression support chinese?

2009-02-16 Thread wesley chen
If the browser's title is chinese, such as '你好', then I can locate on it by: $ie=Watir::IE.attach(:title,"你好"), but I can't locate on it by regular expression as $ie=Watir::IE.attach(:title,/你好/). Any suggestion to deal with the problem so that, we can locate on the browser window by regular expr

[wtr-general] How to change an excel file into write mode

2009-02-16 Thread malar
Hi, i am trying to automate Watir with Ms-excel2003..my code as follows application = WIN32OLE.new('excel.Application') x=application.workbooks.open('test2.xls').worksheets('sheet2') x.application.cells(1,3)['value']="pass" if i run this code, my excel files becomes Read_only mode

[wtr-general] Re: need help in popup

2009-02-16 Thread Bret Pettichord
Try this: require 'watir/ie' require 'watir/contrib/enabled_popup' venky wrote: > hallo, > > I could't require enabled_popup (require 'watir/contrib/ > enabled_popup') > > I am getting an error message > < > d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ > enabled_popup.rb:5:

[wtr-general] Re: How to Verify Name in File download popup

2009-02-16 Thread zeng0...@gmail.com
Did you try to click the options and choose "unblock"? Also try set the IE security level as "Low". Hope this helps. On Jan 20, 9:06 pm, wesley chen wrote: > When I try the method provide above, I have a question. > When I turn to linkhttp://cidian.youdao.com/, and click a link manual, it > will

[wtr-general] Re: Unable to locate element using :text in firewatir

2009-02-16 Thread zeng0...@gmail.com
In my experience, each time when the page is redirected to another page, I need to reattach the browser. Try $ie.attach(:title,//) after your $ie.frame("main").link(:name,"balances").click statement. Hope this help. On Feb 11, 9:19 am, Vidya wrote: > I am a newbie to firewatir. I am having an is

[wtr-general] Re: Unable to open IE window

2009-02-16 Thread Ben
Hi Jaz, No... I didn't contact Daniel Berger yet because I wanted to do some more tests. I added more debug info to the involved gems and I found that the problem occurs at line 35 of windows-pr-1.0.1\lib\windows \msvcrt\string.rb... In that file at line 35, a call is made to strtok_s and this me

[wtr-general] Re: need help in popup

2009-02-16 Thread Darryl (gem dandy) Brown
Hello Venkat, Please see this thread - Gem Recall Notice: win32-api http://groups.google.com/group/watir-general/browse_thread/thread/e18b8fa2c0e7b1bd/7cbbd05ad71c5a89?hl=en&lnk=gst&q=bad+gem#7cbbd05ad71c5a89 A bad gem was introduced momentarily. Regards, Darryl(gem dandy)Brown On Feb 16, 9

[wtr-general] Re: Controlling JavaScript Pop Ups without .click_no_wait

2009-02-16 Thread Bret Pettichord
Bill Mosteller wrote: > Thanks. Just tried onClick, and it doesn't work either. > > From the Ruby PickAxe book: > > "And if some thread happens to make a call to the operating system > that takes a long time to complete, all threads will hang until the > interpreter gets control back." > Exact

[wtr-general] Re: Problems with Roo and set_value

2009-02-16 Thread franz.buchh...@googlemail.com
dmitry...@gmail.com schrieb: > Hello everyone, > I'm having problems with using > > require 'roo' ask in http://groups.google.com/group/ruby-roo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" gro

[wtr-general] unable to set checkbox from list of checkboxes with same name value

2009-02-16 Thread Mordechai
HI, I tried posting earlier but I don't think it went through. So if I double posted I apologize. I'm unable to access a checkbox based on value and I've tried different ways but I'm not succeeding. ie.checkbox(:name,'projects','c2e76d84.60f7eb8a.1a946853.b8bf93b8- ed46-460c.8704.7202497204e

[wtr-general] need help in popup

2009-02-16 Thread venky
hallo, I could't require enabled_popup (require 'watir/contrib/ enabled_popup') I am getting an error message < d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from d:/ruby/lib/ruby/site_ruby

[wtr-general] popup

2009-02-16 Thread venky
hallo, I could't require enabled_popup (require 'watir/contrib/ enabled_popup') I am getting an error message < d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from d:/ruby/lib/ruby/site_rub

[wtr-general] accessing specific checkbox when multiple have same name property

2009-02-16 Thread Mordechai
Hi, I'm having a lot of trouble using xpath to try and access this checkbox. Basically I have a several checkboxes that all have the same name attribute of "projects". The text that goes along with the check box is next to it but not as an attribute. For example: ANALYZERPROJECT (mserver-ZPRO

[wtr-general] popup

2009-02-16 Thread jam
hallo, I could't require enabled_popup (require 'watir/contrib/ enabled_popup') I am getting an error message < d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from d:/ruby/lib/ruby/site_ruby

[wtr-general] Re: Special Characters

2009-02-16 Thread jam
Hi Bill, I tried in another system its not working even there. Iam entering the '#' in authentication popup(Which is not working). I copied and pasted in my app its fine. Kindly let me know how to solve it. Thanks, Jam On Feb 16, 3:42 pm, Bill Xu wrote: > hi: >   I could not reproduce this pro

[wtr-general] Re: Special Characters

2009-02-16 Thread Bill Xu
hi: I could not reproduce this problem :( (I can entered the "#" properly) But a good way you can try is copy and past to see whether it could not past to your program. Watir.autoit.Send('username#') On Mon, Feb 16, 2009 at 6:21 PM, jam wrote: > > Hi, > > Iam usingWatir.autoit.Send('

[wtr-general] Special Characters

2009-02-16 Thread jam
Hi, Iam usingWatir.autoit.Send('username#') when I do this # character is not getting entered. I am using this to handle a authentication popup. kindly help in this. Thanks, Jam --~--~-~--~~~---~--~~ You received this message because you are subsc

[wtr-general] Re: How to Include a ruby Program inside another Ruby Program

2009-02-16 Thread malar
hi I removed include Watir from my coding..its workin now.. Thanks a lot. Malar --~--~-~--~~~---~--~~ 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.co

[wtr-general] propblem with dropdown list

2009-02-16 Thread Poo
class Watir::IE # monkey-patch Watir's IE class def element *args arg1, arg2 = args # this is needed so hashes would work as input elements = [ :table, :link, :cell, :image,:checkbox, :radio, :text_field, :select_list, :button] # Watir elements which elements.each do |el| # iterate