[Wtr-general] Tools Supporting Watir

2006-03-11 Thread Bret Pettichord
I just collected this information for the wiki. Feel free to update.http://wiki.openqa.org/display/WTR/Tools+Supporting+Watir AutAt AutAt is an Eclipse plugin, supporting test-driven development of web applications. It converts a visual representation of web tests into executable tests. Supports

Re: [Wtr-general] Problem enumerating forms

2006-03-10 Thread Bret Pettichord
On 3/3/06, Michael Bolton [EMAIL PROTECTED] wrote: I'm working out of Head, rather than out of1.4, but when I try $IE0.form.methods I get this: ArgumentError: wrong number of arguments (0 for 1) from (irb):10:in `form' from (irb):10 from ♥:0 which gives me a clue. I try this:

Re: [Wtr-general] Problem enumerating forms

2006-03-10 Thread Bret Pettichord
On 3/3/06, Marcus Tettmar [EMAIL PROTECTED] wrote: Hi,Why does this fail: $IE0.goto(http://www.google.com/) $IE0.form( :name, f).text_field( :name, q).set(ruby) $IE0.form( :name, f).button( :name, btnG).click This fails with:WIN32OLERuntimeError: Failed to get IEnum Interface HRESULT error

Re: [Wtr-general] Handling with forms in watir.

2006-03-10 Thread Bret Pettichord
On 3/10/06, Tanushree Bhoi [EMAIL PROTECTED] wrote: Hi I am using Watir Web Recorder version 0.4to recordclick events of our ownsite. For recording, web recorder is doing its job properly but watir is not properly playing it back. does It has limitationofidentify forms.For playing it back i need

[Wtr-general] Moving to OpenQA.org

2006-03-10 Thread Bret Pettichord
We are in the process of moving many of the services that have been provided on RubyForge.org over to OpenQA.org. You'll be seeing more and more signs of this, so i thought i would send out a quick status report. If you have questions or want to help, please speak up. Repository The source

Re: [Wtr-general] Moving to OpenQA.org

2006-03-10 Thread Bret Pettichord
On 3/10/06, Sergio Pinon [EMAIL PROTECTED] wrote: I would be able to help.Glad to hear it. Let us know what you want to help with. What can you do? ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] FireWatir release alpha v1.0

2006-03-10 Thread Bret Pettichord
Could you please add a page to our new wiki about the Firefox release with answers to questions like this?BretOn 3/11/06, Angrez Singh [EMAIL PROTECTED] wrote:Hi, I'm wondering what versions of Firefox this is designed to work with?\Sorry I forgot to mention the versions. I have tried it on

Re: [Wtr-general] xpath support doesn't work for me

2006-03-09 Thread Bret Pettichord
On 3/9/06, Angrez Singh [EMAIL PROTECTED] wrote: 2. You have latest version of watir installed using install.rb not by using watir_installer.exeActually install.rb is broken in HEAD. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Random Watir script failures

2006-03-09 Thread Bret Pettichord
On 3/9/06, Paul Carvalho [EMAIL PROTECTED] wrote: I asked our developers about this and it turns out that with Dot-Net, IE sometimes reports that it is done before it is finished drawing all the frames. (I had even reported some bugs in our app about this a while ago - the delay can be up to

Re: [Wtr-general] how to distinguish among links with the same name

2006-03-08 Thread Bret Pettichord
ie.link(:id, _editTemplate__matter_status_hiddenButton).clickOn 3/8/06, Paul Carvalho [EMAIL PROTECTED] wrote:Regina sent me an email to let me know that the following code allowed her to click one of the desired links: ie.table(:index, 32)[1][2].link(:index, 2).clickHowever, given the number of

Re: [Wtr-general] Older scripts running really slow...

2006-03-02 Thread Bret Pettichord
Could you please do an apples to apples comparison running your scripts with different versions of Watir against the same version of your application. It's possible an application change triggered the performance problem. Let us know the results. It would also be nice if you could share the Watir

Re: [Wtr-general] Older scripts running really slow...

2006-03-02 Thread Bret Pettichord
assert($ie.text_field(:name, feedbackother).verify_contains(Feedback Other)) end end --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bret Pettichord Sent: Thursday, March 02, 2006 12:57 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Older scrip

Re: [Wtr-general] Need advice for splitting large scripts into smaller ones

2006-03-02 Thread Bret Pettichord
Very briefly, there are two things you can do to split your code into separate files.1. Put your test methods in separate files.2. Put your custom methods in separate files.And then after doing this, you have to be able to put it all together again. You can put test methods in different classes

Re: [Wtr-general] xpath support doesn't work for me

2006-03-02 Thread Bret Pettichord
On 3/2/06, Angrez Singh [EMAIL PROTECTED] wrote: One thing I noticed is that when you install 'watir' using 'watir_installer.exe' located in 'installer' folder it install wrong version of 'watir.rb' file. Its installs 'Watir 1.4.1' which doesn't contain xpath support. I think you should use

Re: [Wtr-general] How to start more Tests

2006-03-02 Thread Bret Pettichord
On 3/3/06, Benjamin Hemken [EMAIL PROTECTED] wrote: Hello, at the moment we are working on a test framework, which helps us to write tests easily. We have a login and user administration. But we noticed that there are problems, when 2 user want to start a test. The first tests just

Re: [Wtr-general] Can I run arbitrary JavaScript functions from Watir?

2006-02-26 Thread Bret Pettichord
You can use fire_event to trigger events on elements. And you can bind events to _javascript_ functions. So create an invisible element (say, a div), bind your function to some event and then use Watir to trigger the event. BretOn 2/26/06, Brandon Carlson [EMAIL PROTECTED] wrote: For

Re: [Wtr-general] Error Accessing Frames

2006-02-25 Thread Bret Pettichord
Paul,Thank you for the detailed report.I think we may have suppressed these warnings post 1.4.1. These warnings indicate that the different frames are being hosted from different machines, different ports or different protocols. I have provided background on this problem several times on this

[Wtr-general] Input element names in Watir, was Re: Script hangs and does nothing

2006-02-25 Thread Bret Pettichord
As a general rule, Watir tries to follow HTML as regards terminology. But i don't understand your suggestion.On 2/25/06, Michael Bolton [EMAIL PROTECTED] wrote: HTML doesn't have buttons; it has inputs withtypes of image or button or submit. I've never understood why WATIR doesn't track (at

[Wtr-general] Repository moving to OpenQA.org

2006-02-24 Thread Bret Pettichord
The source repository is in the processing of moving from RubyForge.org to OpenQA.org. It is also moving from CVS to Subversion (SVN).I'll have more on how to access the source repository shortly.Bret ___ Wtr-general mailing list

Re: [Wtr-general] Script hangs and does nothing

2006-02-24 Thread Bret Pettichord
The image on the page is actually a button. The recorder that you used to create the script has a bug, which you should report back to the creator of the recorder.Also there is a ton of crap in this script, also presumably generated by the recorder. For example, i can see no reason to have

Re: [Wtr-general] Is there a way to access External Style Sheet using watir?

2006-02-24 Thread Bret Pettichord
Yes, you can access the attributes of objects. It doesn't matter where their attributes come from, whether they are coded in the html or come from a class in an external style sheet.Try something like this: ie.table(:class, 'displaytag').attribute_value('font')BretOn 2/24/06, Amitha Shetty [EMAIL

Re: [Wtr-general] Save the results..

2006-02-23 Thread Bret Pettichord
Kiran,Since your script references an xls file that we don't have, none of us are going to be a be able to get it to work. Either send the file, or better yet, isolate your problem to a single script that you can send us. We also don't know what doesn't work means. Are you getting error messages?

Re: [Wtr-general] Script hangs and does nothing

2006-02-22 Thread Bret Pettichord
Are you running 1.4.1 or HEAD (the tarball)?On 2/22/06, saud aziz [EMAIL PROTECTED] wrote: Hi guys,When i try to run the following script, it just hangs and never clicks through the respective image buttons on site. Can someone run and tell me if it works for them? Or how i could possibly modify

Re: [Wtr-general] Make Watir support Chinese chars

2006-02-21 Thread Bret Pettichord
I was able to get Watir to read and write Asian characters encoded using UTF-8 by doing the following.1. Use Ruby 1.8.3. The version of WIN32OLE included here has new support for alternate codesets.2. Add the following line to the top of the script: WIN32OLE.codepage = WIN32OLE::CP_UTF8I believe

Re: [Wtr-general] WaTiR and ZenCart?

2006-02-21 Thread Bret Pettichord
On 2/21/06, philip reed [EMAIL PROTECTED] wrote: My company is a heavy implementer of ZC, so at some point if suchlibraries don't already exist, I will likely be building ZenCartinteraction code (e.g., to to save the user/tester from having tofigure out all the specific form interaction). I'm open

Re: [Wtr-general] Watir Vs. Selenium

2006-02-20 Thread Bret Pettichord
I too am excited to hear about the improvements to the Ruby driver for Selenium.Some of the things that i plan to work is deepening the integration between Watir and Selenium. E.g.: (1) a parser that executes Selenium scripts using Watir, (2), a Watir-compatable ruby driver that executes Watir

Re: [Wtr-general] is this worth looking into?

2006-02-17 Thread Bret Pettichord
I haven't been clear. I wouldn't suggest Rspec as something that would help Watir users. I don't feel strongly about this, and would be happy to hear from people who have actually used them together. But i am not actually encouraging this as a useful exercise. Bret

Re: [Wtr-general] Recording http request response headers

2006-02-17 Thread Bret Pettichord
The best approach would be to use a logging proxy. Any recommendations out there?On 2/17/06, Manish Sapariya [EMAIL PROTECTED] wrote:By any chance is it possible to log everyrequest and response data into log file when my watir script is executed?I wanted to figure out the some request urlsfor

Re: [Wtr-general] watir from HEAD installation notes

2006-02-17 Thread Bret Pettichord
Thanks for the report.Where are the 'installing from source' instructions? (I didn't know we had them.)What we really need to do is fix the command line installer (which is broken across the board) and then make sure it sets the permissions. BTW, these files are new and are what gives Watir the

Re: [Wtr-general] how to access links in table cells

2006-02-16 Thread Bret Pettichord
Please provide html and code.On 2/16/06, Manish Sapariya [EMAIL PROTECTED] wrote: Hi,I have a table, which has few columns with simpletext and few columns with links.I want to do a search on text columns, and click inthe link for one of the column for a given row.I can search the row successfully

Re: [Wtr-general] How can I display a message while a Watir script is Sleeping?

2006-02-16 Thread Bret Pettichord
On 2/15/06, Paul Carvalho [EMAIL PROTECTED] wrote: I couldn't find anything in the Ruby technical docs that would help me *create* a pop-up window. Can this be done with Ruby? Do I have to make a call to a _javascript_ function to do this?You definitely don't want to create a _javascript_ popup

Re: [Wtr-general] ANN: Watir WebRecorder

2006-02-15 Thread Bret Pettichord
This looks useful. I wanted to report a couple of bugs, comment on some of the limits you mention of WebRecorder and/or Watir, and clarify my position on recorders, including a general concern about claims made about WebRecorder. First the bugs.1. When i recorded a script i saw a lot of calls to

Re: [Wtr-general] Select List Question

2006-02-14 Thread Bret Pettichord
On 2/14/06, Attebery, Bill [EMAIL PROTECTED] wrote: Basically, I tried to install from the tarball but I'm not sure that I'm doing it quite right. I extracted it into the C: directory -- but I wasn't sure if I was supposed to actually do it into my existing watir directory (C:\Program

Re: [Wtr-general] Select List Question

2006-02-13 Thread Bret Pettichord
Bill,Thank you for your clear report. This sounds like a new problem to me.Using the current development tarball version, could you please include the line below right after you require 'watir'. require 'watir' Watir::SelectList::INPUT_TYPES selectI think there is a good chance this will correct

Re: [Wtr-general] Select List Question

2006-02-13 Thread Bret Pettichord
Huh?On 2/13/06, Attebery, Bill [EMAIL PROTECTED] wrote: The content contained in this electronic message is not intended toconstitute formation of a contract binding TWTC.TWTC will becontractually bound only upon execution, by an authorized officer, ofa contract including agreed terms and

Re: [Wtr-general] Goto(url)

2006-02-13 Thread Bret Pettichord
This problem should now be fixed. For details, see my recent note in response to Jonathan Kohl.BretOn 2/10/06, Dmitri Dolguikh [EMAIL PROTECTED] wrote:I tried that before I started this thread - it didn't help. -DmitriOn 2/10/06, Bret Pettichord [EMAIL PROTECTED] wrote: Does adding @ie.wait

Re: [Wtr-general] Goto(url)

2006-02-10 Thread Bret Pettichord
This works fine for me. What errors are you getting?On 2/10/06, Dmitri Dolguikh [EMAIL PROTECTED] wrote:Hi list,I'm finding that using goto on Watir::IE is not reliable: when goto is called first time it is *always* successful (provided the url wasvalid of course). However on subsequent calls it

Re: [Wtr-general] Goto(url)

2006-02-10 Thread Bret Pettichord
I run this test alone, itpasses. When it's being executed as a part of a suite (and not thefirst test in the suite) goto call times out.Thanks,-Dmitri On 2/10/06, Bret Pettichord [EMAIL PROTECTED] wrote: This works fine for me. What errors are you getting? On 2/10/06, Dmitri Dolguikh [EMAIL

Re: [Wtr-general] WindowHelper

2006-02-10 Thread Bret Pettichord
I would like to deprecate or remove WindowHelper from Watir 1.5.So i'd rather see enhancements directed towards using watir/dialog.rb (which still needs a lot more work, including replacing autoit).Bret On 2/10/06, Atilla Ozgur [EMAIL PROTECTED] wrote: As I know it does not accept regular

Re: [Wtr-general] Declarative Watir scripts?

2006-02-10 Thread Bret Pettichord
I wanted to make a general comment.It is very common for people to create the kinds of frameworks under discussion here for testing. I've seen it done for almost every testing tool.The problem has been that it is hard to build frameworks like these in such classic testing languages as TSL. When i

Re: [Wtr-general] Goto(url)

2006-02-10 Thread Bret Pettichord
What does 'times out' mean? Does the script hang at that point? Do you get a timeout error?Does adding @ie.wait between the two calls to @ie.goto fix the problem?BretOn 2/10/06, Dmitri Dolguikh [EMAIL PROTECTED] wrote: I'm able to reproduce the problem within the same test by using thefollowing

Re: [Wtr-general] Declarative Watir scripts?

2006-02-10 Thread Bret Pettichord
On 2/9/06, Bill Agee [EMAIL PROTECTED] wrote: I was mainly thinking about non-programmers; for testers withoutprogramming experience, using an XML testing language to build testscould result in more success up front (which I think is important in sustaining interest in automated testing, and

Re: [Wtr-general] Testing a Web App with Biztalk

2006-02-10 Thread Bret Pettichord
On 2/10/06, Paul Carvalho [EMAIL PROTECTED] wrote: So my question is: How do I get Ruby or Watir to wait around until an object is in a desired state before it can continue? A secondary question is: How can I tell my Ruby or Watir script that if it waits too long, it should probably just give up

Re: [Wtr-general] Access denied problem is driving me nuts

2006-02-09 Thread Bret Pettichord
Thanks for sharing your solution. Very helpful. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir, Ruby, objects and variables

2006-02-08 Thread Bret Pettichord
@page_view = @page_view_after_add = @page_view_after_edit = Page.new( app.com/view.aspx,[File View])@page_view_after_add.texts File added.@page_view_after_edit.texts File edited.But (surprise!), it does not work. Try this:@page_view = Page.new( app.com/view.aspx, [File

Re: [Wtr-general] The object invoked has disconnected from its clients.

2006-02-08 Thread Bret Pettichord
Marco,Thank you for the detailed reply.I think you are running into a problem that i've also seen intermittently. My theory is that there is a resource leak in Watir. After a certain point, you start getting these errors. What i have found is that you can correct this problem by killing the

Re: [Wtr-general] The object invoked has disconnected from itsclients.

2006-02-08 Thread Bret Pettichord
On 2/8/06, Michael Bolton [EMAIL PROTECTED] wrote: Hi, Bret... Would a script that opened and closed browsers repeatedly be expected to expose this? I wrote something like Marco's thingNo. This is a different issue. In both cases you are getting RPC errors. I was not able to reproduce this

Re: [Wtr-general] Watir Examples that need to be updated

2006-02-07 Thread Bret Pettichord
I often get private requests from people who want to know how they can contribute to Watir.Here is a great list. Any interest? Send me the corrected files and i'll be happy to give you credit and update the examples. BretOn 2/2/06, Paul Carvalho [EMAIL PROTECTED] wrote: I've spent the day running

Re: [Wtr-general] The object invoked has disconnected from its clients.

2006-02-07 Thread Bret Pettichord
Marco,I think i may know what the problem is.Please tell us whether this reliably fixes it: @ie = IE.new @ie.goto(http://www.google.com) # any site will do @ie.bring_to_front()BretOn 2/7/06, Neri, Marco [EMAIL PROTECTED] wrote: Has anyone else run into this error? ( whats worse is it's

[Wtr-general] Rspec was Re: Assertions help

2006-02-07 Thread Bret Pettichord
Have you used Rspec with Watir? I'd be curious to see how this would be done.BretOn 2/7/06, Pierre Garigue [EMAIL PROTECTED] wrote:http://rspec.rubyforge.org/ while we are on the subject, at the last Toronto Ruby user's groupwe started talking about using Rspec to develop tests.This could be of

Re: [Wtr-general] Assertions help

2006-02-07 Thread Bret Pettichord
Thomas, i think there is a simpler way.On 2/7/06, Thomas Healy [EMAIL PROTECTED] wrote: beginassert($ie.contains_text(User profile has been updated.) )$logger.log(###USER UPDATE TEST PASSED' )$logger.log_results(test_b_add_new_user, User profile has been updated., User profile has been

Re: [Wtr-general] is there a way to package watir scripts to run on another PC...

2006-02-07 Thread Bret Pettichord
On 2/7/06, Roy Sin [EMAIL PROTECTED] wrote: 2) If a PC has Ruby/Watir installed but don't have eclipseide ,is there a way to make my scripts into an executableand the person running the scripts could just double clickon the fileFirst of all, they can just double click the test.rb file and it will

Re: [Wtr-general] Assertions help

2006-02-06 Thread Bret Pettichord
You are looking at old and buggy documentation. Is this what we bundled with 1.4.1? Updated documentation is here:http://wtr.rubyforge.org/watir_user_guide.html Is it even possible to combine the assertand if statements in this way?No.BretOn 2/6/06, Paul Carvalho [EMAIL PROTECTED] wrote:Hi

Re: [Wtr-general] How do you pass values to Hidden Input fields?

2006-02-06 Thread Bret Pettichord
. On 03/02/06, Bret Pettichord [EMAIL PROTECTED] wrote: There are tricks you sometimes (always?) have to use to enter text with hidden text fields. But watir can see hidden fields without any special problem and the error you are getting is because watir can't find it. So you are still have problems

Re: [Wtr-general] Regarding Links

2006-02-04 Thread Bret Pettichord
ie.link(:url, http://mail.yahoo.com/config/login? fuseaction=user.viewProfilefriendID=53045355).clickOn 2/3/06, SACHIN MURGUNDE [EMAIL PROTECTED] wrote:Hi,Iam very very new to watir and ruby. Ihave a small problem in watir.Iam having a page with 10 links with same name Send Message with

Re: [Wtr-general] How do you pass values to Hidden Input fields?

2006-02-03 Thread Bret Pettichord
There are tricks you sometimes (always?) have to use to enter text with hidden text fields. But watir can see hidden fields without any special problem and the error you are getting is because watir can't find it. So you are still have problems with the identification. BretOn 2/3/06, Paul Carvalho

Re: [Wtr-general] Ruby Nubie fails to get out of the box with Unittests

2006-02-02 Thread Bret Pettichord
this failure indicates. It is getting the wrong width for the image. Hmm.Bret On 2/2/06, Paul Carvalho [EMAIL PROTECTED] wrote: On 01/02/06, Bret Pettichord [EMAIL PROTECTED] wrote: However, i specifically created core_tests.rb as a robust subset of all_tests.rb. I would like to see the details about the 3

Re: [Wtr-general] clicking on a link problem

2006-02-01 Thread Bret Pettichord
Bolton is right. We need more to go on.But i can actually answer your actual question (what is causing this) if not your implied question (how can i get my code to work).This is happening because the IE window that $ie was bound to was closed. That is what The object invoked has disconnected from

Re: [Wtr-general] Ruby Nubie fails to get out of the box with Unittests

2006-02-01 Thread Bret Pettichord
Thanks for the detailed reports.The image bugs are common. That code is buggy and needs rewriting.The frame index bugs (expected 0, actual 1) are test-bugs. The code is correct and the tests were fixed in 1.4.1 . (Michael is running 1.4.0, but Paul is running 1.4.1).A couple of these bugs are new

Re: [Wtr-general] Anyone use Test::Unit::Reporter? Fwd: Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-31 Thread Bret Pettichord
Alexey is a modest but awesome ruby programmer. It will be hard to find something that sucks less.His Watir-based test suite for Instiki is the best Watir test suite i've seen published. We need to be stealing ideas from it for Watir's own unit tests. And besides, don't you and Alexey work for the

Re: [Wtr-general] Order of execution / button().click?

2006-01-31 Thread Bret Pettichord
Interesting conversation you are having with yourself.I'm surprised that this works. I would expect the click method to still block.In head, there is click_no_wait, which is a non-blocking click.Bret On 1/27/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: Okay :) I fiqured it out. Here is my

Re: [Wtr-general] My Tab Click problem

2006-01-31 Thread Bret Pettichord
I suggest you email us the entire html for the page, possibly as an attachment.On 1/31/06, Gavazn Vahshi [EMAIL PROTECTED] wrote:Hi All,I went through the recent email thread for the tabclick problem, but unfortunately was unable to solve my problem.I'm knida new to Ruby and Watir and anyhelp is

Re: [Wtr-general] Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Bret Pettichord
One problem with this is that if you have suite_foo/test_a.rb and suite_bar/test_a.rb, the second test won't be run. A quick fix would be to use load instead of require.But better would be to use more of the pathname with require. Here's how i'd do it: TOPDIR = File.join(File.dirname(__FILE__),

Re: [Wtr-general] Anyone use Test::Unit::Reporter? Fwd: Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Bret Pettichord
By default, test/unit will look for all the testcases you've defined (subclasses of Test::Unit::TestCase), put them in a suite and then execute them.This is convenient when getting started, but causes bafflement when people want to do anything complex. This is all done by Test::Unit::AutoRunner.

Re: [Wtr-general] IE window popups

2006-01-30 Thread Bret Pettichord
Although i can guess what your syntax means, i'm not quite sure where you got it. Did this come from a tool?Take a look at dialog_test.rb for current progress on supporting this.Bret On 1/26/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: Hello, I am struggeling with IE windows popups. Is

Re: [Wtr-general] unexpected results when a table has cells with tables

2006-01-26 Thread Bret Pettichord
It's a Watir bug. I'm not sure what the correct fix or workaround would be.BretOn 1/26/06, Steven Gordon [EMAIL PROTECTED] wrote:I apologize if this is a known bug or an IE issue rather than a Watir issue - when a table has cells with tables in them, the outer table gives the wrong number of rows

Re: [Wtr-general] Modula test execution?

2006-01-25 Thread Bret Pettichord
I'm not sure what your question is. Do you need help doing this? Or do you have a method and want to compare yours with others that are possibly more elegant? This can be done very simply. Create your test methods using def. Place them in testexecution.rb. Then put require testexecution in the

Re: [Wtr-general] Modula test execution?

2006-01-25 Thread Bret Pettichord
On 1/24/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: Is it possible to have one global variable across multiple files? Yes. In the example below $ie is the global variable in the file open.rb. File: Login: #Includes require 'watir' # the watir controller include Watir require

Re: [Wtr-general] Tab Click

2006-01-25 Thread Bret Pettichord
ie.div(:id, 'LineTab').clickOn 1/25/06, Chintakrindi Meghanath [EMAIL PROTECTED] wrote: Hi All My web application contains two tabs in one of the transaction Detail and Contents After entering the data in the Detail page, using will be saving that record and clicks on Contents. I am

Re: [Wtr-general] Question on clicking on link

2006-01-25 Thread Bret Pettichord
What error do you get?On 1/25/06, Chris Schmechel [EMAIL PROTECTED] wrote: Hi, I'm trying toautomateclicking on the following link (ie. image on my HTML page): a href="" src="" width=162 height=35 border=0/a br which then takes me to thesubsequent download page. I've tried the following without

Re: [Wtr-general] Tab Click

2006-01-25 Thread Bret Pettichord
How 'bout this: ie.div(:id, 'LineTab').cell(:text, 'Contents').click(If this doesn't work, please describe what it actually does. Error?)BretOn 1/25/06, Chintakrindi Meghanath [EMAIL PROTECTED] wrote: Hi I aleady tried with that option , but its not working Thanks Meghanath

[Wtr-general] Fwd: close all IE windows

2006-01-25 Thread Bret Pettichord
On 1/24/06, Richard Lawrence [EMAIL PROTECTED] wrote: Is there a way I can disable error checking on these attach calls? I don't care if the content of the window is good; I just want to close it. This might work: class BetterIE Watir::IE def add_checker; end end ie =

Re: [Wtr-general] Variable Number and Type of Method Parameters?

2006-01-23 Thread Bret Pettichord
Right now Watir normally only supports a single attribute. You may want to look at Wet, which supports multiple attributes. Or, as Angrez has suggested, use xpath. BretOn 1/20/06, Andrew McFarlane [EMAIL PROTECTED] wrote: I am testing an application whose UI controls are often difficult

Re: [Wtr-general] Access denied problem is driving me nuts

2006-01-22 Thread Bret Pettichord
On 1/19/06, John Hobbs [EMAIL PROTECTED] wrote: 1.If I can view the source in IE, shouldn't I be able to view thesource using Watir? Not in cases analologous to what would happen during a cross-site scripting attack. 2.Why does placing an entry in my hosts file make my access denied problems go

Re: [Wtr-general] Link that can not be found

2006-01-16 Thread Bret Pettichord
It really depends on what kind of documentation you are writing. You originally asked whether these notions were implicit to Watir, and the answer is no. Are they relevant? yes. In fact, Watir was designed to make these kinds of things *explicit*. By contrast, Watir's predecessor, IEController,

Re: [Wtr-general] Unit testing

2006-01-13 Thread Bret Pettichord
On 1/13/06, Hugh Sasse [EMAIL PROTECTED] wrote: Also, I encountered problems at first because of the active contentwarnings in IE.I have left the warning popup to display everytime, because I don't always notice the yellowish stripe at the topof the page.While this popup was present, the tests

Re: [Wtr-general] RPC Server unavailable

2006-01-13 Thread Bret Pettichord
Dmitri, This error happens when you close and then open IE windows. The problem is that IE#close is asynchronous. It returns, but the IE RPC server (IE is itself made up of a server bit and a client bit both running on your machine connected via RPC) is still in the process of shutting down. Then

Re: [Wtr-general] Assert error when calling a script from a different file

2006-01-13 Thread Bret Pettichord
The simple solution is to add this code to cdd_154.rb: require 'test/unit/assertions' include Test::Unit::Assertions Note that doing this will end up not having these assertions show up in the assertion count you get when you run the tests. Bret On 1/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [Wtr-general] Design Problems

2006-01-12 Thread Bret Pettichord
My sense is that you are trying too hard. First use cut and paste to create the tests you want, each as a simple linear set of steps, often duplicated. Then look at where the duplication is and remove it, by putting the common code in methods. As you do this, try to pick logical groupings and give

Re: [Wtr-general] Navigating in JavaScript popup

2006-01-04 Thread Bret Pettichord
Can you directly change its value? Thus: ie.text(:id, barportlet{actionForm.assetDoWrittenApproval}).value = 1/1/06 Bret On 1/4/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a java calendar in my web app that when selecting a date from the calendar pre-fills a text box. The text

Re: [Wtr-general] my existing scripts give LoadError after I installed the latest tarball

2006-01-03 Thread Bret Pettichord
The problem is on line 9 of loginRP.rb. What code is on that line?On 1/3/06, Roy Sin [EMAIL PROTECTED] wrote: Hi Wtr,I used to have my watir installation in c:\Programfiles\watir. I downloaded the latest tarball because I wantto use the xpath feature. I installed it under c:\watir. Ican cd to

Re: [Wtr-general] Accessing div attributes

2005-12-29 Thread Bret Pettichord
On 12/29/05, Pat Cappelaere [EMAIL PROTECTED] wrote: For this example: div style=position: absolute; visibility: visible; top: 0pt; left: 0pt; id=xxx.../div Intuitively, I would have expected to get an element and be able to access the methods directly such as: ie.div(:id,

Re: [Wtr-general] Accessing div attributes

2005-12-28 Thread Bret Pettichord
On 12/28/05, Pat Cappelaere [EMAIL PROTECTED] wrote: I can find that div using xpath or by id but I do not seem to be able to get to the visibility attribute div style=position: absolute; visibility: visible; top: 0pt; left: 0pt; id=xxx /div Is this doable? ie.div(:id,

Re: [Wtr-general] Accessing div attributes

2005-12-28 Thread Bret Pettichord
It was called ole_object in 1.4.1, and has been renamed in 1.5 to ole_element.On 12/28/05, Pat Cappelaere [EMAIL PROTECTED] wrote: This would be doable but ole_element is an undefined method in watir 1.4.1 I will try against the head version. Thanks again. Pat.

Re: [Wtr-general] Accessing Table Footer

2005-12-24 Thread Bret Pettichord
Any suggestions (other then getting dev to add static :id values) would begreatly appreciated. Extend Watir to handle the tfoot element. This is pretty easy using HEAD: module Watir class Tfoot NonControlElement def self.tag; 'tfoot'; end end module Container def_creator :tfoot end end

Re: [Wtr-general] another Javascript fire event question

2005-12-24 Thread Bret Pettichord
$ie.image( :id, CartControl_CartDataGrid_ctl3_RemoveButton1 ).click On 12/8/05, Mike Tierney [EMAIL PROTECTED] wrote: Here is another _javascript_ question.I am trying to remove an item from a shopping cart. The remove button looks like this in Spysmith :INPUT language=_javascript_

Re: [Wtr-general] Code donation :)

2005-12-24 Thread Bret Pettichord
Thanks for sharing your code.On 12/14/05, Miroslav Rajcic [EMAIL PROTECTED] wrote: I thought to donate some code to the Watir project, in case the code isfound useful.I needed method to wait for file download window to terminate (so I couldchack if the local file has correct size), and the

Re: [Wtr-general] java script code

2005-12-16 Thread Bret Pettichord
You could attach some _javascript_ to an event and then use watir to trigger the event. Watir ties into IE at a level basically equivalent to the level that _javascript_ uses to access controls. I don't know of any direct way to call _javascript_ from Ruby/COM. BretOn 12/15/05, Tolou Taherinia

Re: [Wtr-general] [Watir] What to do with hanging $ie.goto() statements?

2005-12-16 Thread Bret Pettichord
On 12/15/05, Durk Strooisma [EMAIL PROTECTED] wrote: Before I start to develop a very hackerish work-around, I'm wondering ifmore people encounter problems with hanging goto-statements in Ruby/Watir.If so, how do you handle these issues? Try ie.ie.navigate(url) instead.

Re: [Wtr-general] Assert Question

2005-12-13 Thread Bret Pettichord
David, You are looking at old, and incorrect documentation for Watir. BretOn 12/12/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When using this assert in an if statement, the second half of the condition is skipped if the first half is false. Basically, the assert returns the error and

Re: [Wtr-general] Non-blocking image click

2005-12-12 Thread Bret Pettichord
much what you'd expect it to do simply from reading it. Bret _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Global variables

2005-12-12 Thread Bret Pettichord
the unittests work. The same should work for you. You might have to fiddle with your load path to make this work, depending on how you run your tests. Bret _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr

Re: [Wtr-general] Non-blocking image click

2005-12-10 Thread Bret Pettichord
Watir 1.5 will have a click method that will not only fail to block in your scenario, but will also fail to block when raising modal dialogs (a case where your code will still block). Right now (in my uncommitted code) this is called click_no_wait. Comments please on the best name for this

Re: [Wtr-general] Cannot include (require 'watir/dialog') in my script.

2005-12-05 Thread Bret Pettichord
is in the development version of Watir, not 1.4.2. _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] [OT] running watir in a VM

2005-12-05 Thread Bret Pettichord
_ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Remembering the read page

2005-12-05 Thread Bret Pettichord
At 03:06 AM 12/5/2005, Jirka Machotka wrote: There's probably something more than just the cookies, because the same thing works fine on other mail servers, but the general principle is clear. It may be that Watir is reusing the same session also. _ Bret Pettichord

Re: [Wtr-general] IFrame support

2005-11-28 Thread Bret Pettichord
-lang.orghttp://ruby-lang.org; Jeff Wood ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _ Bret Pettichord www.pettichord.com ___ Wtr

Re: [Wtr-general] Watir hangs after logging into an Application that has applet in the first screen after logging in...

2005-11-25 Thread Bret Pettichord
methods to ensure window synchronization. I'd recommend stubbing out this method when the applet appears, and then resetting it back to its default state afterwards. Bret _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing

Re: [Wtr-general] How to check maxlength validation for a textfield using watir?

2005-11-25 Thread Bret Pettichord
At 06:12 AM 11/24/2005, chaya shetty wrote: I want to write a test case to check maxlength validation for a text field. use ie.text_field(:name, 'foo').maxLength _ Bret Pettichord www.pettichord.com ___ Wtr-general

Re: [Wtr-general] Clicking a link in a sidebar menu which is in a table within a frame

2005-11-25 Thread Bret Pettichord
no index, is there another attribute that I can use to identify that table ? thanks --- Bret Pettichord [EMAIL PROTECTED] wrote: ie.table(:index, ?).cell(:id, 'servtypes').click At 01:58 PM 11/18/2005, Roy Sin wrote: Hi WtrList I have four links in a side bar menu within a table as shown

<    3   4   5   6   7   8   9   10   >