Re: [Wtr-general] How To Check If A Row Inside A Table Exists Or Not Count Of Rows....

2007-06-06 Thread kumari
Hi If u want only the row count of partiular table without nested ones just use the below function at the starting of script and then use the normal syntax ie.table(:id, Table5).row_count().u will get the row count of particular table

[Wtr-general] Concurrent tests, different regions...

2007-06-06 Thread eisdrache
Here is the basic idea of what I am trying to do... I have one site, lets call it www.example.com. On that site, there is a login page which directs to four different regions, say region1.example.com, region2.example.com, etc. Now, on the other side of the equation, watir is being run from a

Re: [Wtr-general] How To Check If A Row Inside A Table Exists Or Not Count Of Rows....

2007-06-06 Thread san
Thanks kumari... It Really Helped Me Out... But I just Copied It.. :P Can You Pls Explain The Function A little Bit More... Thanks A Lot... :) And By The Way Is There Any Way To Check If A Row Inside A Table Exists Or Not... ? ___ Wtr-general

Re: [Wtr-general] Concurrent tests, different regions...

2007-06-06 Thread Paul Carvalho
Without seeing more of the code, I'm pretty sure you need to start by moving away from using Global variables. On 06/06/07, eisdrache [EMAIL PROTECTED] wrote: Here is the basic idea of what I am trying to do... I have one site, lets call it www.example.com. On that site, there is a login

[Wtr-general] run a javascript in html?

2007-06-06 Thread mihai
i have a scientific calculator made in java in a html; how do i test the buttons? when i want to press 5 it runs a javascript function digit(5) how do i call that function in watir? ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] run a javascript in html?

2007-06-06 Thread Ċ½eljko Filipin
Some html would help. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] run a javascript in html?

2007-06-06 Thread mihai
this is the page i want to test: [http://www.squarebox.co.uk/scalc.html|http://www.squarebox.co.uk/scalc.html] ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Watir::Exception::NavigationException not being thrown

2007-06-06 Thread Titani
Hi, I am fairly new to Watir. I had been working with Watir 1.4.1 and I just installed the latest Watir 1.5 gem. When I had Watir 1.4.1 installed, I was able to catch the Watir::Exception::NavigationException when I tried to goto a webpage that did not exist. It seems that 1.5 is not

Re: [Wtr-general] Watir::Exception::NavigationException not being thrown

2007-06-06 Thread Paul Rogers
this was removed from 1.5 because for a few people it was annoying. doing this may fix it require 'watir/contrib/page_checker' ie = Watir::IE.start( 'www.page.com') ie.add_checker(PageCheckers::NAVIGATION_CHECKER) Paul - Original Message - From: Titani [EMAIL PROTECTED] To:

[Wtr-general] Can an 'excel' file be renamed with a Watir command?

2007-06-06 Thread vijay
Hello people, I have got a script that creates an 'excel_file' while running. After running, I want to rename it so that next time, when the script is run, it will create the excel file anew. Can I do that? I tried a few DOS commands but I could find only two DOS commands working in Watir.

Re: [Wtr-general] Can an 'excel' file be renamed with a Watir command?

2007-06-06 Thread Adam Reed
You should be able to use: File.rename(afile, afile.bak) This is listed in the Pragmatic Programmer's (free) Guide to Ruby: http://www.rubycentral.com/book/ref_c_file.html So you'd just do a little: if File.exists?(test.xls) File.rename(test.xls, old_test.xls) else... end...

Re: [Wtr-general] Can an 'excel' file be renamed with a Watir command?

2007-06-06 Thread Chris McMahon
I have got a script that creates an 'excel_file' while running. After running, I want to rename it so that next time, when the script is run, it will create the excel file anew. Can I do that? I tried a few DOS commands but I could find only two DOS commands working in Watir. They are

Re: [Wtr-general] How would you approach verification of data in *xml* format with Watir?

2007-06-06 Thread Lana
Thank You, here is my final basic piece working with your help: ** require 'watir' require rexml/document include Watir include REXML test_site = 'http://...site=xml' ie = IE.new ie.goto(test_site) xml_data =

Re: [Wtr-general] How would you approach verification of data in *xml* format with Watir?

2007-06-06 Thread Chris McMahon
On 6/6/07, Lana [EMAIL PROTECTED] wrote: Thank You, here is my final basic piece working with your help: You're welcome, I'm glad you got it to go! ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Can an 'excel' file be renamed with a Watir command?

2007-06-06 Thread vijay
Thank you areed for your answer. That was what I needed. It is working perfectly. Also, cmcmahon, I would definitely try to read the 'Ruby Language Help' file. Thanks, Vijay. ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Modal dialog

2007-06-06 Thread Hayato
Hello, I'm trying to manipulate modal_dialog and I have an issue. In Watir (Ruby) code, I create two threads. One is to load the target page and click on a button. The button in the target page has onclick event handler that executes JavaScript to show modal popup. The other thread in Ruby

Re: [Wtr-general] run a javascript in html?

2007-06-06 Thread Manish Sapariya
mihai wrote: this is the page i want to test: [http://www.squarebox.co.uk/scalc.html|http://www.squarebox.co.uk/scalc.html] This should work. ie.area(:href, /digit\(4\)/).click For accessing the operators you will have to change the regexp and you are done. Question to the list: On