[wtr-general] Re: Object repository

2009-07-13 Thread LFIdnl
Yes On 13 июл, 18:49, Louis Schatzberg 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 > Sent: 13/Jul/2009 6:39

[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 t

[wtr-general] Re: How to capture unique session ID from URL

2009-03-31 Thread LFIdnl
url = ie.url id = 'jsessionid=' puts url[url.index(id)+id.length..url.length] On 31 мар, 09:03, vasu wrote: > Dear All, > > Iam using datadriven framework, and used href to click on a link. It > was working fine. Now for security reason unique session ID was also > generated and same was updated

[wtr-general] Re: xml handling

2009-03-30 Thread LFIdnl
ction and passing the > value of the and I want to return the value of the > . e.g. --> > >   >    Test_Field1 >   TextBox1 >   TextField > > Here, I want to pass "Test_Field1" and method should  return > TextBox1. > > So is ther any method for thi

[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 wrote: > Hi, > I want to read a xml file. Here is the my XML file--> > > > - >   Test_Field1 >   TextBox1 >   TextField >  

[wtr-general] Re: xml handling

2009-03-29 Thread LFIdnl
xml.elements.each("ObjectMap/Locator"){ |element| puts element.text } xml.elements.each("ObjectMap/Identifier"){ |element| puts element.text } On 30 мар, 10:44, Vikas Tulashyam wrote: > Hi, > I want to read a xml file. Here is the my XML file--> > > > - >   Test_Field1 >   TextBox1 >   TextFi

[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 wrote: > Just to confirm, does Watir supportSOAtesting. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[wtr-general] Re: How to change the array to a string?

2009-03-10 Thread LFIdnl
If you want to save as ' ["2", "3", [2, 3, "2"]] ' , you can use inspect method: arr1 = ["2", "3", [2, 3, "2"]] str = arr1.inspect If you want to save as ' 23232 ' , you can use this parr of code: arr1 = ["2", "3", [2, 3, "2"]] str = arr1.flatten.to_s On 10 мар, 11:54, wesley chen wrote: > S

[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 wrote: > Hi All, > > I am using system("dir") to execute commands in Command Pro

[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 wrote: > Hi All, > > I am using system("dir") to execute commands in Command Prompt. > > I get the result(below)

[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 wrote: > I had to reinstall Watir/ Ruby after several attempts, I found I had > to delete the registry entries, they

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

2009-02-10 Thread LFIdnl
Run you part of code in new thread: thr = Thread.new { your_object.fire_event("onMouseDown") your_object.fire_event("onMouseUp") } sleep(5) #Waiting for end of execution of thread #continue your test On 26 янв, 23:25, Bill Mosteller wrote: > The application situation is that the user is a

[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 yo

[wtr-general] Re: How can we execute tests continuously?

2009-01-13 Thread LFIdnl
For batch runnig scripts I use Rake (http://rake.rubyforge.org/) and for each test I create task. Rake make possible for run list of tasks and if one of tasks will break then all batch running will not stoped On 13 янв, 12:54, Prince3105 wrote: > Hi  am a newbie to watir, > > before i was workin

[wtr-general] Re: watir click_no_wait hangs my code

2009-01-12 Thread LFIdnl
Try to call your part of code in other thread: puts "before click" thread = Thread.new { ie.link(:text, /#{pattern}/).click_no_wait } puts "after click" On 12 янв, 11:31, mbaruah wrote: > Thanks Wesley, I got it now. No pop up and the call blocks!!. > > On Jan 12, 1:12 pm, "wesley chen" wro

[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" wrote: > Try \\ > > $drive+"\\"+env+"\\Test_Results\\"+$file_name+"_Results.xls" > > -Original Message- > From: watir-general@googlegroups.com > > [mailto:watir-gene...@google

[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: && 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 pu

[wtr-general] Re: && operator not working

2008-12-02 Thread LFIdnl
May be your variable 'real' and 'list' have another not visible character like as whitespace. Try exucuite puts "'#{real}'"; puts "'# {list}'" . Result should be in apostrophies. On 2 дек, 10:12, Prince3105 <[EMAIL PROTECTED]> wrote: > Hi Experts, > > I am totally new to Ruby and Watir. Before i

[wtr-general] Re: Screenshot on remote machine

2008-11-20 Thread LFIdnl
lso, it > should not have 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: > &g

[wtr-general] Screenshot on remote machine

2008-11-19 Thread LFIdnl
Hi all! I run watir scripts on remote computer (logged-in through MS Remote Desktop ). In case of error/exceptions script make a screenshot with a win32screenshot.gem , but result of screenshot - black rectangle. On local machine screenshot has normal image. What can I do for take a normal scree

[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 --~--~-~--~~~---~--~~

[wtr-general] Re: get all values of a radio Button

2008-11-12 Thread LFIdnl
Maybe this: ie.radios.each { |radio| puts radio.value } On 12 нояб, 16:20, TCBlues <[EMAIL PROTECTED]> wrote: > How could I get all the possible values of a radio button? > For example if I  have something like: >  Daily Email input> >  Weekly > Email >  Monthly > Email > > How could I get all

[wtr-general] Re: How to get the system date to my text field.

2008-11-11 Thread LFIdnl
require 'time' textfiled = Time.now.strftime("%d-%b-%Y").upcase On 12 нояб, 07:27, meaculpa <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a text field for enetering datein teh format 12-NOV-2008. So > how can i able to get system date and make it in this format to enter > in textfield.Please he

[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 PRO

[wtr-general] Re: Cannot install watir gem

2008-10-10 Thread LFIdnl
I tried install gems through proxy and i can't understand why it didn't work too. Try to local install local Download gem from http://rubyforge.org/frs/?group_id=104&release_id=22799 and execute D:\Ruby\bin>gem install for example D:\Ruby\bin>gem install "D:\download\watir-1.5.6.gem" On 10 окт,