[wtr-general] Re: execute_script in 1.6.2 ?

2009-08-21 Thread robert
Thanks George, Yes that works but I'm puzzled by the difference between the code and the generated documentation at http://wtr.rubyforge.org/rdoc/classes/Watir/IE.html#M000248 On Aug 21, 4:57 am, George george.sand...@gmail.com wrote: Hi Robert, I couldn't get that to work either, but

[wtr-general] XPath results

2009-08-21 Thread chao
It seems like the IE Watir returns ole_object(s) with element(s) _by_xpath() calls, while FireWatir returns an actual Watir Element object. Is that right? Is it possible to get the Watir element object from the ole_object? Thanks, chao --~--~-~--~~~---~--~~ You

[wtr-general] Two threads removed by user request

2009-08-21 Thread Željko Filipin
Dheeraj Gambhir has started two threads, `Ruby/Oracle connectivity` and `Pick pop-up text and oracle DB connectivity issue`. Later he noticed that there is confidential data in his posts. He tried to edit the posts, but Google groups does not have such feature. He asked me to edit it, since I am

[wtr-general] Re: How can I add loop to check whether all the images of a page has loaded or not?

2009-08-21 Thread Maumita
Hi Bill, Thsi is my actual script- Script --- #User experience script to capture response time #Load the library and create reference to Library object require 'watir' require 'watir/win32ole' require 'logger' #include Watir # hack ruby logger to format and output only the minimum needed

[wtr-general] Re: XPath results

2009-08-21 Thread Angrez Singh
It seems like the IE Watir returns ole_object(s) with element(s) _by_xpath() calls, while FireWatir returns an actual Watir Element object. Is that right? Thats correct. Is it possible to get the Watir element object from the ole_object? I think you can get watir element from

[wtr-general] Re: delete cookies

2009-08-21 Thread Raveendran P
Hi, The below code executes without any error. But Nothing happens in C:\Documents and Settings\raveendran\Local Settings\Temporary Internet Files Awaiting your reply On Fri, May 16, 2008 at 6:19 PM, Moochie dduph...@redbrickhealth.comwrote: # Purpose: To delete all cookies on the PC #

[wtr-general] CI_reporter usage

2009-08-21 Thread Test Test
Hi, I have: ruby 1.8 watir 1.6.2 ci_reporter-1.6.0 Can any body provide a link or example of how to start the use of ci_reporter in my script to generate xml report. Say for a simple script like: require 'watir' require 'rubygems' require 'win32ole' ie = Watir::IE.new autoit =

[wtr-general] Re: CI_reporter usage

2009-08-21 Thread tcfodor
Hi DG, I've posted my solution on my blog: http://tcfodor.wordpress.com/2009/07/23/ci_reporter-output-for-watir/ Hope this helps! -Tiffany On Aug 21, 5:40 am, Test Test checktestingthi...@gmail.com wrote: Hi, I have: ruby 1.8 watir 1.6.2 ci_reporter-1.6.0 Can any body provide a link

[wtr-general] Re: while ie.contains_text(Next) loop problem

2009-08-21 Thread Chuck van der Linden
Seems to me that the letters 'next' might be rather common to find on a lot of pages, and are you SURE it's not there even if perhaps part of another word? If the 'next' is a clickable link or button , then perhaps you'd be better off to look to see if the link exists? while

[wtr-general] Re: execute_script in 1.6.2 ?

2009-08-21 Thread George
Here Robert, try this: require 'watir' b = Watir::IE.new execute_script(b.document.parentWindow.execScript(alert('hello');)) On Aug 20, 11:29 pm, robert rob99br...@gmail.com wrote: Thanks George, Yes that works but I'm puzzled by the difference between the code and the generated

[wtr-general] Help selecting elements of a drop down list when the site uses Javascript/ASP.net

2009-08-21 Thread Doodle
Hi everyone, I'm loving Watir so far but running into a wall with a certain site. The site uses javascript/asp.net to control a drop down list. I have gone crazy trying different things to use select_list, but nothing seems to work. I just want to be able to select the nth element in a dropdown

[wtr-general] Re: while ie.contains_text(Next) loop problem

2009-08-21 Thread George
Another thought is that the word 'next' could be hidden in the html, although I'm not sure if Watir searches for hidden text. On Aug 21, 10:12 am, Chuck van der Linden sqa...@gmail.com wrote: Seems to me that the letters 'next'  might be rather common to find on a lot of pages, and are you