[wtr-general] Re: WatirLogger can't work in watir1.6.2

2008-11-12 Thread Edward Deng
I suggest to use log4r. On Wed, Nov 12, 2008 at 3:15 PM, Gavin Jefferies [EMAIL PROTECTED] wrote: Hi Drew, require 'logger' require 'watir/logger' will get it working for you but I think the first requirement is a bug. Gavin On Tue, Nov 11, 2008 at 10:54 PM, drew [EMAIL PROTECTED]

[wtr-general] Re: how to copy text from modal window

2008-11-12 Thread meaculpa
The text is An allotment request with id IND50 has been created I want to take IND50please helpurgent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send

[wtr-general] Firefox 2 : WATIR 1.6.2 and table operations

2008-11-12 Thread Natasha
Hi All, I am using Watir 1.6.2 and was running my test on Firefox 2 for the first time. I found that the following code is not getting executed on Firefox: I have been able to execute it successfully on IE. Is it not supported? ==

[wtr-general] Re: how to copy text from modal window

2008-11-12 Thread LFIdnl
Try to use ie.modal_dialog(:title, 'Title of your modal window') On 12 нояб, 12:55, meaculpa [EMAIL PROTECTED] wrote: The text is An allotmentrequest with id IND50 has been created I want to take IND50please helpurgent --~--~-~--~~~---~--~~ You

[wtr-general] Button click doesn't work

2008-11-12 Thread JArkelen
Hi, I have a button I need to click on with the following code: div style=float:left; padding-top:4px; padding-left:4px; table cellspacing=0 onclick=submitSearch('GB','en') class=p- button-special tr td div id=search-button align=centerSearch/div /td /tr /table

[wtr-general] Re: Help needed documenting Watir 1.6 roll out

2008-11-12 Thread Bret Pettichord
Thanks so much for your help. I'm not sure what to do about the Logger. At heart, I would want to remove it from Watir. It is neither IE-specific, nor Watir specific. It is just sample code on how to create a Watir, and as such is really example code rather than something that should be

[wtr-general] Re: Button click doesn't work

2008-11-12 Thread Charley Baker
You have a javascript event on the table. How about this: ie.table(:class,'p-button-special').fire_event('onclick') If that doesn't work, make sure the table is recognized by flashing it. -Charley On Wed, Nov 12, 2008 at 8:21 AM, JArkelen [EMAIL PROTECTED] wrote: Hi, I have a button I need

[wtr-general] Re: Firefox 2 : WATIR 1.6.2 and table operations

2008-11-12 Thread Bret Pettichord
We were not able to get table body support for firefox into this release. I have updated the compatibility matrix. Bret Natasha wrote: Hi All, I am using Watir 1.6.2 and was running my test on Firefox 2 for the first time. I found that the following code is not getting executed on

[wtr-general] Re: Very slow typing speed for firefox 2 : watir 1.6.2

2008-11-12 Thread Charley Baker
I'm seeing this happen with one of the people I'm working with, slow meaning almost 1sec/character in this case. He's running firefox on linux. My guess is that it's due to jssh, but it's hard to tell, I'll poke around and see if I can find out more. What OS/FireFox version and jssh addon are you

[wtr-general] Re: Very slow typing speed for firefox 2 : watir 1.6.2

2008-11-12 Thread Natasha Ranney
Hi Aidy, I am running my tests from windows command prompt. test.rb -- www.test.com param1 param2 I am using options.yml file, with following settings: # 'ie' (Watir::IE) or 'firefox' (FireWatir::Firefox) browser: firefox #

[wtr-general] get all values of a radio Button

2008-11-12 Thread TCBlues
How could I get all the possible values of a radio button? For example if I have something like: input type=radio name=email_frequency value=dailyDaily Email/ input input type=radio name=email_frequency value=weeklyWeekly Email/input input type=radio name=email_frequency value=monthlyMonthly

[wtr-general] Re: getAllContents selectList

2008-11-12 Thread TCBlues
and what's the value of @o?? On 11 nov, 18:10, marekj [EMAIL PROTECTED] wrote: On Tue, Nov 11, 2008 at 5:22 AM, TCBlues [EMAIL PROTECTED] wrote: when you call getAllContents in a select list field you get all the captions but I would like to get the possible values, is it possible?

[wtr-general] Re: getAllContents selectList

2008-11-12 Thread TCBlues
Ok, I got it. @ie.select_list(:name,myField).o.each {...} It's working for watir but not for firewatir. Any idea?? On 12 nov, 10:23, TCBlues [EMAIL PROTECTED] wrote: and what's the value of @o?? On 11 nov, 18:10, marekj [EMAIL PROTECTED] wrote: On Tue, Nov 11, 2008 at 5:22 AM, TCBlues

[wtr-general] Re: Issue with IE7's certificate page

2008-11-12 Thread maven999
Thanks. Weirdly, issue was resolved when I cleared my cache and restarted browser. On Nov 6, 1:55 am, Tony [EMAIL PROTECTED] wrote: HiMaven, This is just a suggestion ... and others might have better ones When testing a website (usually test env) certificates might expire and get renewed.

[wtr-general] wait_until gives undefined method error

2008-11-12 Thread maven999
Hi all, I am trying to write some code to log into an app via a pop-up window and then click some tabs inside it. However, when I try to encapsulate the login logic into a method, I get an error on console. I am pasting my code below followed by the console error. Any suggestions as to what I'm

[wtr-general] Re: wait_until gives undefined method error

2008-11-12 Thread VMBed
Hi, Try using Watir::Waiter.wait_until instead. Also you might want to consider removing include Watir from your code to avoid problems when you upgrade to 1.6.2. See http://wiki.openqa.org/display/WTR/include+Watir for that. hth, Gavin On Nov 12, 12:10 pm, maven999 [EMAIL PROTECTED] wrote:

[wtr-general] Re: wait_until gives undefined method error

2008-11-12 Thread Bret Pettichord
I think the subject line is incorrect. Your problem is that your code to initialize the browser needs to be in a startup method. The error message you are getting is telling you that @ie is nil (because it has not been initialized). Bret maven999 wrote: Hi all, I am trying to write some

[wtr-general] Re: Very slow typing speed for firefox 2 : watir 1.6.2

2008-11-12 Thread Natasha Ranney
Hi Charley, I found the same behavior. It was typing at 1 character per second. Firefox version: 2.0.0.17 OS: Windows XP JSSH: 0.9 It would be great if you can sort this out. Thanks, Natasha Charley Baker [EMAIL PROTECTED] wrote: I'm seeing this happen with one of the people I'm working

[wtr-general] Re: How to save a cookie and reload it?

2008-11-12 Thread jnxgn
It is really a shame I cannot understant the cookie setting, maybe I need more time. But I know the gem of Mechanize can deal with the cookie quite well, such as the code: agent.cookie_jar.save_as('cookie.txt',:cookiestxt) -- agent.cookie_jar.load('cookie.txt',:cookiestxt) Is there a way to

[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-11-12 Thread Bret Pettichord
the solution is to add require 'watir/ie' to your script jpweston wrote: After installing WATIR 1.6.2, scripts that have the following line: require 'watir/contrib/enabled_popup' are causing the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/

[wtr-general] Re: Issue with IE7's certificate page

2008-11-12 Thread alex.ikhelis
BTW, Tony thanks for good description of dealing with ssl and certificates with watir! I have just wondered about possible solutions.. about any better ideas. And does watir support easy work with https, certificates and same origin policy than Selenium. Accidentally I found this post :) We're