[Wtr-general] exception when contains_text called for empty ie

2006-09-13 Thread Zeljko Filipin
I have just installed watir 1.5.1.1081 and got an error message when I started my script. The shortest way I could reproduce it is this:C:\Documents and Settings\zfilipin\Desktopirbirb(main):001:0 require 'watir' = trueirb(main):002:0 ie = Watir::IE.new= #Watir::IE:0x2e557d4 [...]irb(main):003:0

[Wtr-general] Kerberos/ NTML Authentification

2006-09-13 Thread Christian Baumann
Hi all, how can I handle a Kerberos/ NTML Authentification? Thanks in advance, Christian ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] exception when contains_text called for empty ie

2006-09-13 Thread Zeljko Filipin
Done. http://jira.openqa.org/browse/WTR-95ZeljkoOn 9/13/06, Bret Pettichord [EMAIL PROTECTED] wrote:Zeljko Filipin wrote: Should I report this to jira?Yes, thanks. ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] creating test suites

2006-09-13 Thread Luke
I practice at ruby and I've done some example test case,now I would like to create test suite and generate reportcan someone look at this code and explain me what's wrong? I still get message :C:/Test/ruby/lib/ruby/site_ruby/1.8/test/unit/ui/reporter.rb:63:in `run': uninitialized constant

Re: [Wtr-general] Access is Denied

2006-09-13 Thread Jeroen van Menen
Hi, Just wanted to let you know that this access denied problem can be fixed in code. You need to replace the current implementation of finding a frame/frames with some COM api calls. Here are links to info about this solution: KB Article KB196340:

[Wtr-general] logging a msg to TEST::UNIT

2006-09-13 Thread Adrian Lewis
Hi, Can we log a message to TEST::UNIT independent of an assertion or a 'flunk'? Cheers aidy --- This message and any attachment are confidential and may be privileged or otherwise

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Ryan
Hi, Thank you both for your replies. I would love some help to get this going on linux. Can you please contact me at [EMAIL PROTECTED] with the appropriate information. Thank you sooo much! - Posted via Jive Forums

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Phlip
Ryan wrote: Thank you both for your replies. I would love some help to get this going on linux. Can you please contact me at [EMAIL PROTECTED] with the appropriate information. The current Watir couples with the Automation model inside Internet Explorer. I researched how to perform the

Re: [Wtr-general] JavaScript created Divs - Access

2006-09-13 Thread Zeljko Filipin
I did not understand what is your problem. You cold not access a div in sample1.html?Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] creating test suites

2006-09-13 Thread Charley Baker
require 'stringio' I believe this is fixed in some version of test unit. -CharleyOn 9/13/06, Luke [EMAIL PROTECTED] wrote:I practice at ruby and I've done some example test case,now I would like to create test suite and generate report can someone look at this code and explain me what's wrong? I

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Bret Pettichord
Ryan wrote: Thank you both for your replies. I would love some help to get this going on linux. Can you please contact me at [EMAIL PROTECTED] with the appropriate information. Thank you sooo much! Does this mean that you are not reading the list/forum and that therefore we should not

Re: [Wtr-general] JavaScript created Divs - Access

2006-09-13 Thread Michael Ehrich
Thats right. I cannot access the popupmenu in sample1.html I dont get any errors cuz it seems like it would access the div cuz u can see a yellow mark for a second like a click or something but it doesnt go any further like it should. The _javascript_ creates divs with onmouseover do

Re: [Wtr-general] Another question about no such file to load -- watir (LoadError)

2006-09-13 Thread Charley Baker
Is this due to RUBYOPT not being set in 184 and 185? On 9/13/06, Bret Pettichord [EMAIL PROTECTED] wrote: Allen Zhou wrote: With Ruby 1.8.4 or 1.8.5, I must wrote as below require 'rubygems' require_gem 'watir'I realize Allen is using Watir 1.5, but this will also be a problem for1.4 users. I'm

Re: [Wtr-general] Handling (Browser Security Driven?) Modal Dialog

2006-09-13 Thread Sun
OK thank you again. Can you tell me -- where to find good documentation on Ruby libraries like WinClicker? I see a lot of basic Ruby language documentation...but not much on libraries (if that is the right word.) Actually, if I do gem list I see several win32-* gems...I presume the WinClicker

[Wtr-general] Watir 1.5 and attaching to windows problem

2006-09-13 Thread David Munns
Has anyone discovered a solution to the following? I built a test tool with Ruby/Watir (1.4). When I upgraded to Watir 1.5.1.1081 so that I could control modal dialog windows, suddenly the watir attach_browser_window call is unable to locate the main IE window by title. I tried other

Re: [Wtr-general] creating test suites

2006-09-13 Thread Chris McMahon
On 9/13/06, Luke [EMAIL PROTECTED] wrote: I practice at ruby and I've done some example test case,now I would like to create test suite and generate reportcan someone look at this code and explain me what's wrong? I still get message : If I remember correctly, this is fixed if you get the code

Re: [Wtr-general] Watir 1.5 and attaching to windows problem

2006-09-13 Thread Bret Pettichord
I have not seen these errors before. If anyone else sees these also, please report. David, It look like you are running the core_tests.rb. Ruby windows_tests.rb to run the unit tests for IE.attach. Bret David Munns wrote: Has anyone discovered a solution to the following? I built a

[Wtr-general] Promoting Watir

2006-09-13 Thread Jim Hollcraft
The first link for 'Watir' on google is wtr.rubyforge.org. From that page if you click on 'Project/ Ruby Forge,' you see a summary showing the last update as August, 2004. When I first saw this, I thought that Watir was a dead project. This gives a false impression and may be slowing adoption

[Wtr-general] Looking for a WATIR Tester

2006-09-13 Thread Hetal
Hello Everyone, I am Hetal with Intelliswift, a system integration company based in Bay Area. We are executing a project in San Francisco and we need a Test Engineer who has some hands on experience in WATIR. We are looking for some one who has been a developer before and is now into

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Ryan
Just post everything here. I am trying to use an open source tool called rth, which supposidly has a plugin to watir..thats why I am trying to get this workin on my linux machine.. you can post all of your answers here. -

Re: [Wtr-general] Handling (Browser Security Driven?) Modal Dialog

2006-09-13 Thread Charley Baker
I added comments and cleaned up the WinClicker code, mostly formatting as I'm not quite sure which methods people are using. The next step would be creating unit tests. -Charley On 9/13/06, Bret Pettichord [EMAIL PROTECTED] wrote: Sun wrote: OK thank you again. Can you tell me -- where to find

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Chris McMahon
On 9/13/06, Ryan [EMAIL PROTECTED] wrote: Just post everything here.I am trying to use an open source tool called rth, which supposidly has a plugin to watir..thats why I am trying to get this workin on my linux machine..I just took a look at the rth demo code. You don't need Watir to see the demo

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Ryan
cmcmahon Thanks! Just to clear something up, most of the script is ruby, so the changes you recommended is just a ruby script instead of watir right? I dont know either, so once you confirm I will install ruby on my linux box. Thanks again.

Re: [Wtr-general] Watir 1.5 and attaching to windows problem

2006-09-13 Thread David Munns
The unit tests for windows_tests.rb produced a bunch of failures and errors as shown below. This makes me think that the configuration is not good. My environment includes: Watir 1.5.1.1081, Ruby 1.8.2.15, IE 6.0.3790.1830, Windows 2003 SP1. Any recommendations on how to proceed?

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Bret Pettichord
Just to clear something up, most of the script is ruby, so the changes you recommended is just a ruby script instead of watir right? I dont know either, so once you confirm I will install ruby on my linux box. Thanks again. Correct ___

[Wtr-general] Driving Javascript

2006-09-13 Thread Sun
I have a piece of Javascript that I need to invoke via Watir. Here is the Javascript code: td class=off nowrap scriptmenuStart(TAB_MENU_OFF,'AuC/uCOUNT','javascript:Events.invokeEvent(\'2_11_act\')','ACCOUNT','AccountTab'); registerMenuShortcut('C'); /script Now if this was a Javascript link

[Wtr-general] using Watir for single-user performance testing

2006-09-13 Thread Danny R. Faught
I briefly mentioned how I've been using Watir in a blog post today - The Jury’s Still Out on OpenSTA (http://tejasconsulting.com/blog/?p=74). I'd be glad to elaborate on Watir's role in the toolchain, and discuss the necessity of using a browser-based test tool for single-user performance

Re: [Wtr-general] using Watir for single-user performance testing

2006-09-13 Thread Cain, Mark
Yes. What I do is write out to a file page load times before and after application changes. I have to rename the output file between runs. It is pretty simplistic but need some down and dirty perf numbers. require 'date' def test_myPerfTestCase $start = DateTime.now code here

Re: [Wtr-general] using Watir for single-user performance testing

2006-09-13 Thread Bret Pettichord
Danny R. Faught wrote: Is anyone else using Watir for performance testing? Yes. Check ie.down_load_time after clicking a button, or whatever. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Driving Javascript

2006-09-13 Thread Bret Pettichord
Did you try this? ie.goto(javascript:Events.invokeEvent('2_11_act')) Bret Sun wrote: I have a piece of Javascript that I need to invoke via Watir. Here is the Javascript code: td class=off nowrap

Re: [Wtr-general] using Watir for single-user performance testing

2006-09-13 Thread Paul Rogers
Watir has this very powerful, but I think, little understood feature, which I called an error checker. You can create some code that gets called on each page load, kind of like this ( I dont have time to test this right now though ) down_load_timer = Proc.new(){ |ie| log_to_file Page Title:

Re: [Wtr-general] Watir 1.5 and attaching to windows problem

2006-09-13 Thread David Munns
I uninstalled all Ruby and Watir versions, installed Ruby 1.85-21 and Watir 1.5.1.1081. Running the Watir unit tests (ruby window_tests.rb) cause the IE information bar to keep prompting me allow blocked content? which appears to mess up the unit tests (failures and errors). Various attempts to

Re: [Wtr-general] Watir 1.5 and attaching to windows problem

2006-09-13 Thread Bret Pettichord
From: http://wtr.rubyforge.org/watir_user_guide.html Running on *Windows XP* and Internet Explorer prevents you from running the unit tests? If you are using Windows XP with Service Pack 2, you may not be able to run the tests unless you enable active content. If the website you are testing

Re: [Wtr-general] logging a msg to TEST::UNIT

2006-09-13 Thread Bret Pettichord
Adrian Lewis wrote: Hi, Can we log a message to TEST::UNIT independent of an assertion or a 'flunk'? Cheers aidy I recently posted how to log a failure without aborting a test. Other than that, test::unit does not support logging messages not associated with faults of one type or

Re: [Wtr-general] RSpec and Watir

2006-09-13 Thread Bret Pettichord
Aslak hellesoy wrote: I just whipped up a little example and some doco about how to (and why) use RSpec with Watir. It's in RSpec's subversion under trunk/vendor/watir http://rubyforge.org/scm/?group_id=797 http://rubyforge.org/plugins/scmsvn/viewcvs.php/trunk/vendor/watir/?root=rspec