[wtr-general] How to handle Exceptions in Watir

2009-09-17 Thread Vishal
While running the testcase in Watir if an Exception is encountered, I program quits at that point. How can we handle exception in Watir Thanks, Vishal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: How to handle Exceptions in Watir

2009-09-17 Thread Wesley Chen
require 'watir' require 'watir/testcase' class Test1 Watir::TestCase def test1 end def test2 end end When there is exception in test1, test2 will still run. Expect it could work. Thanks. Wesley Chen. On Thu, Sep 17, 2009 at 3:02 PM, Vishal bvkon...@gmail.com wrote:

[wtr-general] Re: span class and text

2009-09-17 Thread John Kolokotronis
I'm not too sure what you mean by verifying that span elements are required but you could identify the two separate elements in two ways: 1) Use the second property :index. So, it would something like @browser.span(:class = reqempty, :index = 1) and @browser.span (:class = reqempty, :index = 2).

[wtr-general] Re: Handling Java Script button

2009-09-17 Thread Željko Filipin
On Wed, Sep 16, 2009 at 8:58 PM, dk dkora...@gmail.com wrote: PS: i am new to this group - please let me know if i need to start a different discussion thread. If it is a new topic, please start a new thread. Željko --~--~-~--~~~---~--~~ You received this

[wtr-general] Not able to tun .rb script through rufus scheduler

2009-09-17 Thread Maumita
Hi, I am not able to tun a .rb script through rufus scheduler.Nothing happens.No message, Please find belo my scheduler script - - ### Script to schedule a job using rufus-scheduler require 'rubygems' require 'rufus/sc/scheduler' class Scheduler def start scheduler =

[wtr-general] Re: How to identify pop-up windows using watir tool

2009-09-17 Thread tester1
adding java script for this pop-up windows: a onclick=javascript:openViewPromoPopup('https://teststore.t- suite.telstra.com:443/jsdn/shoppingcart/viewShoppingCartPromotion.do? offerId=2001830isOrderMore=falseactiveCount=1','false');return false; href= img border=0 alt=Apply promotion title=Apply

[wtr-general] Re: How to handle Exceptions in Watir

2009-09-17 Thread Mark Anderson
4432 (20090917) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4434 (20090917) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

[wtr-general] Re: I'm looking for a way to count all PageTo(*) elements or to loop until the bullet_search_white_small.gif doesn't exist in the page

2009-09-17 Thread Guy
Hello Anna, Works perfect!! so simple and brilliant The code looks like this: ie.div(:id, 'resultsList').lis.each do |element| puts element.link(:url ,/job/).text puts element.span(:class, 'jobSearchJobListedDate').text puts element.ps[1].text.to_s end Only 2 problems left: 1).

[wtr-general] Re: What is the current support level for Ruby in Watir?

2009-09-17 Thread karim rayani
From what i have done is, Firewatir is compatible with ruby 1.9.1 on ubuntu. still i was unable to use Ruby 1.9.1 on windows that comfortably. I guess Watir with Ruby 1.9.1 might be on the way once we have a stable One click installer for Window, the highest priority for the ruby community right

[wtr-general] How to insert Wait in Firewatir

2009-09-17 Thread dk
Hi people ! I am working on a code with a lot of java script that make ajax calls very often. I read and tried the wait options for Watir ( sleep, wait_until etc. on http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir) but they dont seem to work with Firewatir. sleep has no effect while

[wtr-general] Setting innerHTML of a div using Watir.

2009-09-17 Thread Brian Rosenthal
Hi, We're using an editable div, and we need to be able to set its contents using Watir (in IE). What's the best way to do that? It doesn't seem to respond to IE.text_field(...)... And IE.div(...).innerHTML does not work (nor set). (this syntax) div contenteditable=true/div Thanks, Brian

[wtr-general] Re: Setting innerHTML of a div using Watir.

2009-09-17 Thread Prajakta Jadhav
Can you post the html code of this page? Are there any frames outside the div? On Fri, Sep 18, 2009 at 5:34 AM, Brian Rosenthal brosent...@facebook.comwrote: Hi, We’re using an “editable div”, and we need to be able to set its contents using Watir (in IE). What’s the best way to do that?

[wtr-general] Re: Setting innerHTML of a div using Watir.

2009-09-17 Thread karim rayani
Why not use Javascript commands, there is a technique to insert/execute javascript commands as well, that would be a better direct way http://karimnumerouno.wordpress.com On Fri, Sep 18, 2009 at 10:45 AM, Prajakta Jadhav jadhav.praja...@gmail.com wrote: Can you post the html code of this