Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-04-03 Thread vijay
Thanks for all your answers. They were really helpful to me. One small question, do we need to invoke Garbage Collector explictly and if so, how? Thanks, Vijay. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] .Can we set the Watir's time_out_value in the script?

2007-04-03 Thread vijay
Thanks Jlolis for your reply. It is exactly what I had wanted. Thanks, Vijay. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] How to check for the presence of a frame in a page?

2007-04-03 Thread vijay
Hello people, Our application has got several frames. The controls need to be accesses through these frames like '$ie.frame('Detail').link(:text,'Disclosure').click'. Before certain statements of this type, I want to check whether the particular frame is present in the current page or not.

Re: [Wtr-general] HTML element physical location on screen.

2007-04-03 Thread Vamsee Krishna M
Thanks for these links helped me verymuch, although I have one problem, last method ClientToWindow method doen't return anything insted it modifies the passed arguments with new values, how to handle this situation in ruby ? ___ Wtr-general mailing

[Wtr-general] Converts DOM Tree into XML file.

2007-04-03 Thread vijay
Hi people, I just want to know , how to convert The DOM Tree Structure into a XML file format..? And also can we save the DOM tree Structure from the IE's DOM Explorer.? Thanks, Vijay. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] How to check for the presence of a frame in a page?

2007-04-03 Thread John Lolis
Take a look at this thread http://forums.openqa.org/thread.jspa?threadID=7082tstart=30 I give some ideas on how to approach a very similar problem. The easy option to catch the specific exception and handle it from there. ___ Wtr-general mailing list

Re: [Wtr-general] HTML element physical location on screen.

2007-04-03 Thread Vamsee Krishna M
Hey, Able to drag the code up to here. def get_location_on_screen assert_exists rects = ole_object.getClientRects().item x = rects.left y = rects.top width = rects.right - rects.left height = rects.bottom - rects.top puts BEFORE #{x}

Re: [Wtr-general] Assert Dates?

2007-04-03 Thread Fletch
Thanks for your replies, The date guide was really good, but as it is only a String comparison, I did not want to over complicate the code. I have also tried the other two suggestions, and have still not been able to get the match to work. I think that I might have to use an escape. I have tried

[Wtr-general] Using Until

2007-04-03 Thread Nicola Kennedy
Hi, Am v new to Watir/Ruby, so probably a simple question for someone. I'm trying to put a loop in a script where it checks for a link on a page, if the link isn't there, it clicks on the next page button, looks for the link again, and the process repeats until it finds the link, and then

Re: [Wtr-general] Assert Dates?

2007-04-03 Thread Chris McMahon
On 4/3/07, Fletch [EMAIL PROTECTED] wrote: Thanks for your replies, The date guide was really good, but as it is only a String comparison, I did not want to over complicate the code. I have also tried the other two suggestions, and have still not been able to get the match to work. I think

Re: [Wtr-general] Using Until

2007-04-03 Thread Chris McMahon
I'm trying to put a loop in a script where it checks for a link on a page, if the link isn't there, it clicks on the next page button, looks for the link again, and the process repeats until it finds the link, and then clicks on it. It'd be easier to help if you would post a) the HTML

Re: [Wtr-general] Using Until

2007-04-03 Thread John Lolis
I'm not sure how new 'wait_until' is, but if you have it do wait_until(time_to_wait_in_seconds){ $ie.element(:type,'value').exists? } ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Using Until

2007-04-03 Thread Nicola Kennedy
Sorry, probably my fault for not being clear about how new I am to this. I want the code to do the following things: 1. Check on page for a link. 2. If link not there, press Next page 3. If link there, click on it. 4. When next page reached (if step 2 followed), repeat the action of looking for

Re: [Wtr-general] Using Until

2007-04-03 Thread Chris McMahon
Aha, so you want to click Google's Next button? Take a look at this, it might give you some ideas: http://testingjeff.wordpress.com/2007/01/27/creating-methods-on-the-flyand-bugs-in-google-phonebook/ Also, if you are unsure how to address a particular page element, take a look at the unittests

[Wtr-general] IE nested class of module watir?

2007-04-03 Thread aidy lewis
Hi, I am unsure why IE is a nested class of the module watir I was thinking of creating this object hierarchy IE ObjectMap Test Inheriting the IE class from the ObjectMap class. aidy ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Using Until

2007-04-03 Thread Paul Rogers
isnt Jeffs code kind of over kill for this? def link_there? link_text = Click Me return @ie.link(:text , link_text).exists? end while 1 # add something here to stop infinite loop if link_there? @ie.link(:text , link_text).click? else @ie.link(:text , Next).click end end

[Wtr-general] OT: Thoughtworks planning to release a tool for application testers

2007-04-03 Thread Chris McMahon
TW is about to release this thing called Mingle to manage agile projects. Today they announced an upcoming tool for testers: http://studios.thoughtworks.com/2007/4/2/how-our-testers-use-mingle (see the last paragraph). ___ Wtr-general mailing list

Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-04-03 Thread Charley Baker
You shouldn't have to invoke the garbage collector manually as it runs automatically, most often when ruby is allocating memory and it's internal memory tracker says there isn't any available or if allocating memory fails. -Charley On 4/3/07, vijay [EMAIL PROTECTED] wrote: Thanks for all

Re: [Wtr-general] Stable version for watir and ruby

2007-04-03 Thread Sayali Patil
Hi , I had asked for the stable version of Watir and Ruby becuse i was getting the Access Denied error with the latest versions . But when i installed Ruby 1.8.5 and watir 1.5.1.1158 i still keep getting the same error . I think i m not installing it the right way ,please go through the