[Wtr-general] how to minimize the command prompt

2006-12-21 Thread VIKASH KUMAR
I running test cases under Windows Environment, using ruby, watir 1.5.1.1100. I have the following code: require 'watir' # the watir controller require 'watir/winClicker.rb' require 'watir\contrib\enabled_popup' test = C:\\aa.htm ie=Watir::IE.start(test) def startClicker( button,ie,waitTime =

[Wtr-general] storing values in variables

2006-12-21 Thread VIKASH KUMAR
I am using the following code: require 'net/http' # read the page data http = Net::HTTP.new('kvcrpf.org', 80) resp, page = http.get('/achievements.htm', nil ) # BEGIN processing HTML def parse_html(data,tag) return data.scan(%r{#{tag}\s*.*?(.*?)/#{tag}}im).flatten end output = [] table_data =

Re: [Wtr-general] Wait functionality in Watir ..need help

2006-12-21 Thread Željko Filipin
On 12/20/06, Bret Pettichord [EMAIL PROTECTED] wrote: Željko Filipin wrote: while true break unless ie.text.include?(loading) sleep 1 end This is a more concise way of doing the same thing: while (ie.text.include? 'loading') {sleep 1} I knew that there had to be a way to do it in

Re: [Wtr-general] How to verify if SPAN is visible

2006-12-21 Thread Željko Filipin
For span style=color: Red; visibility: visible; id=MainLogin_PasswordRequired*/span you can use irb(main):015:0 ie.span(:id, MainLogin_Password).html = SPAN id=MainLogin_PasswordRequired title=\Password is required.\ style=\VISIBILITY: visible; COLOR: red\*/SPAN irb(main):016:0 ie.span(:id,

[Wtr-general] Watir or WET for Automation framework

2006-12-21 Thread Navneesh Garg
Hi, I am pretty new to WET and Watir. I have extensive automation experience in QTP and WinRunner where I created frameworks to make automation experience more maintainable and less time consuming I have created couple of automation scripts using WET (which is of course quick along with

Re: [Wtr-general] Watir or WET for Automation framework

2006-12-21 Thread Christian Baumann
Hello Navneesh, would You be nice if You could start a new topic for each new discussion! Please don´t just answer to an old mail an change the topic! If a mail-program shows the discussion as threads Your behaviour isn´t very nice. Your mail is then shown as answer to Re: [Wtr-general] Wait

Re: [Wtr-general] Watir or WET for Automation framework

2006-12-21 Thread sathya shankar
Hi Naveen, Watir is a Powerful lib you an almost do everything. WET sits on top of Watir and WET supports all most all the features you have asked for. 1. External Object Repository = Use XRM Repository manager to create object repo in xml / use WET-UI to create objects. 2. Use External

Re: [Wtr-general] how to access an element whose html tag is A

2006-12-21 Thread vijay
Thank you, Zeljko, for your crystal-clear answer, using which the issue got resolved. Using the similar answer you have given to a different thread, I was unable to resolve the issue using that (because I was continually trying with the '.enabled' option and ignored the '.exists' options

[Wtr-general] Watir or WET for Automation framework

2006-12-21 Thread Navneesh Garg
Hi, I am pretty new to WET and Watir. I have extensive automation experience in QTP and WinRunner where I created frameworks to make automation experience more maintainable and less time consuming I have created couple of automation scripts using WET (which is of course quick along with other

Re: [Wtr-general] how to access an element whose html tag is A

2006-12-21 Thread vijay
Thank you, Zeljko, for your crystal-clear answer, using which the issue got resolved. Using the similar answer you have given to a different thread, I was unable to resolve the issue using that (because I was continually trying with the '.enabled' option and ignored the '.exists' options

Re: [Wtr-general] how to access an element whose html tag is A

2006-12-21 Thread Željko Filipin
On 12/21/06, vijay [EMAIL PROTECTED] wrote: 1. How you came to know that there is a word called cell, which can be used to check the contents of a table cell. Is that documented somewhere? If so, can you point me to the link where all these different types of objects, which can be referred

[Wtr-general] How to capture exception details

2006-12-21 Thread vijay
Hello, Can someone tell me how to handle exceptions (Watir::Exception::UnknownObjectException: Unable to locate object) in Watir such that Watir would write the exception message somewhere and continue with the script? Thanks, in Advance, Vijay

Re: [Wtr-general] Watir or WET for Automation framework

2006-12-21 Thread Raghu Venkataramana
Navneesh Garg wrote: Hi, I am pretty new to WET and Watir. I have extensive automation experience in QTP and WinRunner where I created frameworks to make automation experience more maintainable and less time consuming I have created couple of automation scripts using WET (which is of

[Wtr-general] Iterator in harness

2006-12-21 Thread Max Russell
I'm cross posting this one from Ruby Forum as I'm at a loss here... I have a harness I'm using for testing with Watir. It has become apparent that the iterator is loading the tests defined based on the order they appear in the directory as opposed to the order in the testlist.

Re: [Wtr-general] Executing javascript in 1.5

2006-12-21 Thread Charley Baker
Agreed: http://jira.openqa.org/browse/WTR-121. On 12/20/06, Charley Baker [EMAIL PROTECTED] wrote: Ah, you're adding it to the IE class, which in Watir 1.4.1 was a super of Frame. In 1.5.1, Frame doesn't inherit from IE, but does include Container and PageContainer as mixins. You'll want to

Re: [Wtr-general] Syntax for relative attributes

2006-12-21 Thread John Lolis
link = ie.div(:text, 'Pragmatic Version Control').after.link(:class, addtocard') I think this is less intuitive and it would be somewhat harder to implement. That's why i came up with the other proposal, above. Thats actually the first way I thought of it too. A second, slightly

Re: [Wtr-general] Executing javascript in 1.5

2006-12-21 Thread Max Russell
I've been bending my brain round that Javascript thing for a while and should a glimmer of intelligence shine into the murk of my brain, I'll certainly contribute any code I create towards a standard method for dealing with these things... Max Russell Test Analyst. INPS Tel: 01382 223900

Re: [Wtr-general] ie.minimize broken in watir-1.5.1.1127

2006-12-21 Thread Željko Filipin
On 12/19/06, Bret Pettichord [EMAIL PROTECTED] wrote: Can you manually install AutoIt and then successfully run minmax_test.rb as a limited user? ruby 1.8.5 (2006-08-25) [i386-mswin32], ie7, watir-1.5.1.1127 minmax_test.rb works when runned as a limited user without AutoIt installed (and

Re: [Wtr-general] Give a solution fo javascript popup

2006-12-21 Thread Charley Baker
Google is your friend, searching for watir javascript dialog, this is the first link: http://www.hanselman.com/blog/ClickingAJavaScriptDialogUsingWatir.aspx -Charley On 12/20/06, liucongying [EMAIL PROTECTED] wrote: I use ruby185-21 and watir-1.5.1.1127.gem, I want a solution fo js pop the

Re: [Wtr-general] How to verify if SPAN is visible

2006-12-21 Thread Paul Rogers
didnt some one post a is_visible? ( or visible?) method to the list? I think it walked up the dom tree looking to see if parent elements were visible, as the approach here wont work if the element that encloses the span ( if there is one ) is also hidden. Paul - Original Message -

Re: [Wtr-general] How to verify if SPAN is visible

2006-12-21 Thread Charley Baker
There's a user contribution on the Wiki: http://wiki.openqa.org/pages/viewpage.action?pageId=1119that extends element to walk the DOM tree and check for disabled or non-visible elements. -Charley On 12/21/06, Paul Rogers [EMAIL PROTECTED] wrote: didnt some one post a is_visible? ( or

[Wtr-general] Watir and Javascript Issues

2006-12-21 Thread bks505
I have read numerous posts about problems with Watir and accessing data that is computed elsewhere (i.e. in a separate .js file) but unfortunately none of the posts have pointed me in the right direction. I am testing a simple html page that has no frames but does call javascript functions in

Re: [Wtr-general] ie.minimize broken in watir-1.5.1.1127

2006-12-21 Thread Bret Pettichord
Željko Filipin wrote: Can you manually install AutoIt and then successfully run minmax_test.rb as a limited user? ruby 1.8.5 (2006-08-25) [i386-mswin32], ie7, watir-1.5.1.1127 minmax_test.rb works when runned as a limited user without AutoIt installed (and even when limited

[Wtr-general] Alerts and modal dialogue handler

2006-12-21 Thread kingsley
Hi All, Here is the popup manager I wrote. (im just about to head off on holiday but I'll be back in Jan) download here: http://www.mindflowsolutions.com/software/popup.zip I would be grateful if people could try this out and give me feedback on if it is working for them. Any improvements and

[Wtr-general] OT: anyone know Ruby Facets?

2006-12-21 Thread Chris McMahon
http://facets.rubyforge.org/ Looks like some interesting things, I just wondered if anyone here has experience with it/them? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] hi and help with some javascript

2006-12-21 Thread Paul Hammer
Vince, I tried this: puts Button 1: #{ie.buttons[1].name} puts Button 2: #{ie.buttons[2].name} puts Button 3: #{ie.buttons[3].name} Got this output: Button 1: search Button 2: sfwq E The first button is a search function on the page. The 2nd is the submit

Re: [Wtr-general] www.croczilla.com/jssh is down what does it mean ?

2006-12-21 Thread Angrez Singh
Hi, Croczilla site is up again. Following is Alex Fritze reply to the mail: The server zope instance shut itself down and I didn't notice until today, since I'm away on holiday in Mexico at the moment :-) It's fixed now. Regards, Angrez On 12/19/06, Dave Hoover [EMAIL PROTECTED] wrote:

[Wtr-general] how to minimize command prompt of ruby.exe

2006-12-21 Thread VIKASH KUMAR
I running test cases under Windows Environment, using ruby, watir 1.5.1.1100. I have the following code: require 'watir' # the watir controller require 'watir/winClicker.rb' require 'watir\contrib\enabled_popup' test = C:\\aa.htm ie=Watir::IE.start(test) def startClicker(