[wtr-general] Re: How to access a child object

2008-10-23 Thread LFIdnl
Initially you should to add new tag (if watir doesn't support 'object' tag): module Watir class Object NonControlElement TAG = 'OBJECT' end end And after use: ie.frame(:id, 'url').object(:id, 'flexApp') I didn't test it but i think it must work :) On 23 окт, 19:44, LanOK [EMAIL

[wtr-general] Re: how to copy text from modal window

2008-11-12 Thread LFIdnl
Try to use ie.modal_dialog(:title, 'Title of your modal window') On 12 нояб, 12:55, meaculpa [EMAIL PROTECTED] wrote: The text is An allotmentrequest with id IND50 has been created I want to take IND50please helpurgent --~--~-~--~~~---~--~~ You

[wtr-general] Re: Screenshot on remote machine

2008-11-20 Thread LFIdnl
screensaver, nor locked (on remote machine). You can have screensaver and lock your workstation from the pc where you're running remote desktop without any negative effects though. On Nov 19, 10:50 am, LFIdnl [EMAIL PROTECTED] wrote: Hi all! I run watir scripts on remote computer (logged

[wtr-general] Re: operator not working

2008-12-02 Thread LFIdnl
Or you can execute puts real.length; puts list.length . That shows you what the length of stings On 2 дек, 11:07, LFIdnl [EMAIL PROTECTED] wrote: May be your variable 'real' and 'list' have another not visible character like as whitespace. Try exucuite puts '#{real}'; puts '# {list}' . Result

[wtr-general] Re: Modal Dialog goto with no wait

2008-12-09 Thread LFIdnl
In these cases I execute command in another thread. If anybody suggest another usefull method I will be happy :) . Try this: ... thr = Thread.new { ie.goto javascript:OpenPage(); } sleep(3) #time to wait of javascript popup thr.kill puts ie.modal_dialog.html # now must gets here On 10 дек,

[wtr-general] Re: Opening an Excel file with a variable name

2008-12-17 Thread LFIdnl
More useful File.join($drive,env,Test_Results,#{$file_name}_Results.xls ) On 17 дек, 00:20, Darin Duphorn dduph...@redbrickhealth.com wrote: Try \\ $drive+\\+env+\\Test_Results\\+$file_name+_Results.xls -Original Message- From: watir-general@googlegroups.com

[wtr-general] Re: Access Denied Error

2009-01-23 Thread LFIdnl
I had the same problem. It reproduce if url of main application and url of frame are not equal. For example, if main url (in address field of browser) is http://localhost/index.html and frame url(src) http://127.0.0.1/frame.html and you wants to get some data from elements which locate in frame

[wtr-general] Re: Watir

2009-03-03 Thread LFIdnl
I think your PATH variable was broken. You should add info about ruby path into PATH variable. Or insert 'require 'rubygems' ' at the begin of your tests On 3 мар, 16:56, Jmitchum juliamitc...@gmail.com wrote: I had to reinstall Watir/ Ruby after several attempts, I found I had to delete the

[wtr-general] Re: Reading result of a command

2009-03-03 Thread LFIdnl
If I understand you need to get list of files in directory. You should use FileUtils module to get clear result http://ruby-doc.org/core/classes/FileUtils.html On 3 мар, 17:01, venky venkatesh...@gmail.com wrote: Hi All, I am using system(dir) to execute commands in Command Prompt. I get

[wtr-general] Re: Reading result of a command

2009-03-03 Thread LFIdnl
May be this help you IO.popen(dir) { |f| f.each_line { |line| puts line } } So each 'line' you can save into array. Read more about http://www.ruby-doc.org/core/classes/IO.html#M002267 On 3 мар, 17:01, venky venkatesh...@gmail.com wrote: Hi All, I am using system(dir) to execute

[wtr-general] Re: soa testing

2009-03-13 Thread LFIdnl
For testing SOAP I use SoapUI tool. http://www.soapui.org/ . You can write unit-tests in it On 12 мар, 15:14, bright brightrobin1...@gmail.com wrote: Just to confirm, does Watir supportSOAtesting. --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: xml handling

2009-03-30 Thread LFIdnl
doc.elements.each('//TestObject/Identifier') { |el| puts el.text } doc.elements.each('//TestObject/Locator') { |el| puts el.text } On 30 мар, 10:44, Vikas Tulashyam vtulash...@gmail.com wrote: Hi, I want to read a xml file. Here is the my XML file-- ObjectMap - TestObject  

[wtr-general] Re: xml handling

2009-03-30 Thread LFIdnl
for this? Thanks Vikas On Mar 30, 12:10 pm, LFIdnl ikabluch...@gmail.com wrote: doc.elements.each('//TestObject/Identifier') { |el|   puts el.text } doc.elements.each('//TestObject/Locator') { |el|   puts el.text } On 30 мар, 10:44, Vikas Tulashyam vtulash...@gmail.com wrote: Hi

[wtr-general] Multiple attributes don't supported for FRAME element

2009-07-13 Thread LFIdnl
Multiple attributes don't supported for FRAME element. It a bug or a feature? ie.frame({:name = 'content', :class='frame-class'}) #This doesn't work ie.frame(:name, 'content') #This works --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: Object repository

2009-07-13 Thread LFIdnl
Yes On 13 июл, 18:49, Louis Schatzberg louis.schatzb...@expedata.net wrote: What version of the 'libxml-ruby' gem do we need. I have 1.1.3 is that correct? -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Ivan Kabluchkov