Re: [Wtr-general] Pass links text to array

2007-02-22 Thread Maisonnette
Do you have tested this ? : [b]s = ie.div(:id, top).text.each { |t| puts t.to_s }[/b] - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6643messageID=19031#19031

Re: [Wtr-general] Watir.. close, but not close enough

2007-02-22 Thread Walter Kruse
In my opinion, Watir is absolutely what we need. A smallish tool for the job, which can be extended at your will. That is why, among other reasons, I believe Bret started this thing, a tool with no vendorscript, but with a proper programming language. The tool allows you to do the things that are

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread Maisonnette
is it returning the id ? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6643messageID=19037#19037 ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread Željko Filipin
If you want text of each link in an array, you can do it like this (this is from irb session with your html). irbarray = [] = [] irbie.links.each {|link| array link.text} = 0 irbarray = [, Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany,

[Wtr-general] Button identification

2007-02-22 Thread Simba
Hi, I have several [b]Delete[/b] caption button on page , To identify them i am trying to use multiple properties but its giving error some thing like this ie.button(:text='Delete',:index=1) please anybody tell me how solve this problem. thanks Simba

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread sathees
No they not id. these are just in href=/modx3/index.php?id=20 title=Bulgaria Bulgaria I need to get bulgaria in the array. thank you - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6643messageID=19039#19039

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread Maisonnette
it's maybe the :index ... have you tried to use the index: 1- use a for 2- with the for , you can check every link with the ie.link(:index, variable).click - Posted via Jive Forums

Re: [Wtr-general] Button identification

2007-02-22 Thread Željko Filipin
Mind reading does not work (The Braidy Tester). Please send us your error message. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread Željko Filipin
It works for me. I have Watir 1.5.1.1158. If you are not using this version, I suggest upgrade. http://wiki.openqa.org/display/WTR/Development+Builds -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread sathees
yes that's true. it works with watir 1.5.XX. but the problem is my test which runs well in Watir 1.4.1 ie6 doesn't run with watir 1.5.xx and IE 6. I am getting the following error. any help appreciated c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:2592:in `method_missing':

[Wtr-general] How to access childnodes of a particular node ?

2007-02-22 Thread Vamsee Krishna
So far I didn't find any solution to access child nodes of a particular element, if anybody knows any method or hack please post it here. I have to iterate over child div's of a container div. - Posted via Jive Forums

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread sathees
solved, Thank you to every one. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6643messageID=19057#19057 ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Problem with wrapper created around Watir.rb

2007-02-22 Thread Ajitesh Srinetra
Hi Bret This is one sample testcase require File.dirname(__FILE__) + '/../../../test_helper' require File.dirname(__FILE__) + '/../../../Methods/ProcessRecords' require File.dirname(__FILE__) + '/../../../Methods/RuleCreation' class RuleTemplateWithRule_test Test::Unit::TestCase def setup

Re: [Wtr-general] Watir.. close, but not close enough

2007-02-22 Thread Bret Pettichord
Walter Kruse wrote: I just wish the Win32-GUITest library could get the same amount of attention. I've had lots of success with Perl's version of this lib., and would like to do that testing in Ruby now. Maybe you could give it some attention. Seriously, there is no one to do this stuff

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread Bret Pettichord
sathees wrote: I am running watir 1.4.1 , if I update to 1.5.1 then my test is not running in IE 6 Please report details. We are giving top priority to these problems. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread Bret Pettichord
sathees wrote: i am getting an error i have added the div to where the links i want are located. irb(main):363:0 s=[] = [] irb(main):364:0 ie.div(:id, top).links.each {|link|slink.text} NameError: undefined local variable or method `document' for #Watir::Div:0x2dfdafc from

Re: [Wtr-general] Nested Frames

2007-02-22 Thread Bret Pettichord
Akhil Mehra wrote: Hi Guys, I am currently trying to use Watir (1.5.1.1158) to test Web applications in our organization. The web application i am trying to build test around have a number of Frames and IFrames and in a number of cases heavily nested. I am currently facing problems

Re: [Wtr-general] Pass links text to array

2007-02-22 Thread Bret Pettichord
sathees wrote: yes that's true. it works with watir 1.5.XX. but the problem is my test which runs well in Watir 1.4.1 ie6 doesn't run with watir 1.5.xx and IE 6. I am getting the following error. any help appreciated c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:2592:in

Re: [Wtr-general] Button identification

2007-02-22 Thread Bret Pettichord
Simba wrote: Hi, I have several [b]Delete[/b] caption button on page , To identify them i am trying to use multiple properties but its giving error some thing like this ie.button(:text='Delete',:index=1) please anybody tell me how solve this problem. This is a known (to me) problem.

Re: [Wtr-general] How to access childnodes of a particular node ?

2007-02-22 Thread Vamsee Krishna
Thanks. I would be great if there is a way to to get all child nodes under particular node. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6648messageID=19062#19062

Re: [Wtr-general] Delete link

2007-02-22 Thread Naga Harish Kanegolla
Hi please help me for the above problem, I couldn't fidgure out the problem till now, please help me regarding that.. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6581messageID=19069#19069

Re: [Wtr-general] 'ie.close' or 'ie.close if ie'

2007-02-22 Thread Bret Pettichord
Maisonnette wrote: Hi everyone , I have two question for you ! 1- I don't know what 's the difference between the ie.close and the ie.close if ie. In the first case if ie is nil (i.e. has not been initilized), then you will get a missing method 'close' for nil error. In the second case,

Re: [Wtr-general] Nested Frames

2007-02-22 Thread John Lolis
bret, I don't have time to look into this right now (too much going on at work), but something is up with 1158. I have areas in my app where it just waits forever (never used to happen) and its spitting out access denied errors constantly (single server). I reverted back to ruby 1.8.2 and

Re: [Wtr-general] How to access childnodes of a particular node ?

2007-02-22 Thread Željko Filipin
On 2/22/07, Vamsee Krishna [EMAIL PROTECTED] wrote: I would be great if there is a way to to get all child nodes under particular node. There is always xpath. What do you need? Code that I posted previously does not do what you need? -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] Problem with wrapper created around Watir.rb

2007-02-22 Thread Ajitesh Srinetra
Hi Bret Sorry I missed the wrapper code that i have written require 'watir' include Watir include SupportsSubElements module SupportsSubElements def _getNikiraLink(links, how, what) link = nil case how when :index begin

Re: [Wtr-general] Nested Frames

2007-02-22 Thread Charley Baker
The access denied errors will no longer show up with the latest code in trunk. It's now swallowing all the access denied errors as a temporary work around. There's a possible solution used by Colin Neller in Watin(.net version of watir):

Re: [Wtr-general] Watir.. close, but not close enough

2007-02-22 Thread Chris McMahon
On 2/22/07, Walter Kruse [EMAIL PROTECTED] wrote: Bret, I had a look long ago at Piotr Kaluski's very detailed docs for Perl's Win32GuiTest (http://www.piotrkaluski.com/files/winguitest/docs/winguitest.html). He even lists some C code examples. I'm afraid C is a little beyond me... Wayne

Re: [Wtr-general] Nested Frames

2007-02-22 Thread John Lolis
As a side note, I just found out another possible case where the cross site cripting/frame access problems will happen when the frames are being served by the same domain *and* you have proxy enabled in ie which would explain some issues I've encountered. I have frames being served from

[Wtr-general] Assert with If...Else...End not working as specified in example

2007-02-22 Thread Jason
I have this snippet of code that I have modeled after the 'Printing Results When Using Assertions' in the WATIR User Guide. My assert is working, in the assertion count, but the puts message is always Test Failed. The 'You have been signed in' text is verbatim what is on the IE page. Can

Re: [Wtr-general] Nested Frames

2007-02-22 Thread Akhil Mehra
Hi Bret, No the applications is currently hosted on the same server. I get the following error when clicking on a link from one frame which inter updates another frame. Exception: unknown property or method `readyState' HRESULT error code:0x80070005 Access is denied. The error

Re: [Wtr-general] Button identification

2007-02-22 Thread Simba
Thanks Bret , Toady i have seen that limitation in Watir site , i did not knew this limitation in Watir and also i am new to Watir , I have another question for you For some page I used ie.show_all_objects in CMD , it has given ouput something like this HTML Docuemnt name=Quickwatch

Re: [Wtr-general] Fetching variable results with in Div

2007-02-22 Thread sathees
I have solved this. Thanks string = ie.div(:id, showingDiv).text.to_s string = string.gsub(/Now Showing Hotels 1 to 10 of /, '') puts string = 234 - Posted via Jive Forums