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 http://forums.openqa.org/thread.jspa?threadID=6557&mes

[Wtr-general] Start test at 6 pm

2007-02-22 Thread sathees
Hallo World, How can I say start a test @ 6 pm or so? if I pass the time to a variable like t = "18:00:00" then its a string and I can't say if Time.now == t start test 1 elsif Time.now == t + 1 start test 2 end. any help appreciated

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 id=quickw

[Wtr-general] Executing all scripts at a time

2007-02-22 Thread Naga Harish Kanegolla
Hi all, I have all the test cases files in a folder called watir in the test directory in my application. Right now i am executing these scripts one by one. Is there a way to execute all the scripts at a time?? If so please help me the code.. Thanks and Regards, Harish

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] Assert with If...Else...End not working as specified in example

2007-02-22 Thread John Lolis
I'm no expert on assert, but heres what I would try Do a puts ie.text (i think there is a text, if not html) and confirm you can see it maybe the text you want is in a different frame? - Posted via Jive Forums http://forums.openq

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

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

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...

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): http://www.colinneller.com/blog/PermaLink,guid,64eac67e-df

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 lin

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] 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 1145

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 s

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

2007-02-22 Thread Walter Kruse
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... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMA

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=6581&messageID=19069#19069 __

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=6648&messageID=19062#19062 ___

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

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] 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 p

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|s< NameError: undefined local variable or method `document' for > # > from c:/ruby/lib/ruby/site_r

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 http://rubyforge

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] 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] 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=6643&messageID=19057#19057 ___ Wtr-general mailing list Wtr-general@rubyforge.org ht

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

2007-02-22 Thread Željko Filipin
Is this what you need? 1 2 irb> ie.div(:index, 1).divs.each {|div| puts div.text} 1 2 => 0 -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[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 http://foru

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': docume

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 http://rubyfo

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 sathees
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|s< from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:899:in `getLink' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2830:in

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 http://forums.openqa.org/thread.jspa?thread

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=6643&messageID=19039#

[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 Ž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). irb>array = [] => [] irb>ie.links.each {|link| array << link.text} => 0 irb>array => ["", "Austria", "Belgium", "Bulgaria", "Croatia", "Cyprus", "Czech Republic", "Denmark", "Estonia",

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=6643&messageID=19037#19037 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://

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 n

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

2007-02-22 Thread sathees
the contents as following. . . Countries of Europe Austria Belgium Bulgaria Croatia Cyprus Czech Republic Denmark Estonia Finland France Germany Greece Hungary Iceland Ireland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Monaco Netherlands Norway Poland Portugal Romania Russia Slova

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

2007-02-22 Thread sathees
I tried that and it inserts some numbers which i don't know where it is coming from, to the array. puts s[0] returns 67 puts s[1] returns 111 puts s returns all text in the links. why is that happening. I am running watir 1.4.1 , if I update to 1.5.1 then my test is not running in IE 6 thank

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=6643&messageID=19031#19031