Re: [Wtr-general] Issue WTR-108 - file_field.set not working

2007-01-02 Thread joyboy_chan
I think so. Method ie.file_field(:id, '').set(file_path) does not work correctly. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5766&messageID=16739#16739 ___ Wt

Re: [Wtr-general] how to know the content of a table 's colomn and row

2007-01-02 Thread joyboy_chan
1. you can get a table instance by table id or table index, like table = $ie.table(:index, 3). 2. you can get the cell instance by cell = table[1][1], this is the cell located at first column, first row. - Posted via Jive Forums

Re: [Wtr-general] assertion on the color of the row of a table

2007-01-02 Thread Ajitesh Srinetra
Hi everyone In my application I want to assert on the color of the row of a particular table. Based on the certain rules the color of these rows are changing.so every time i need to assert on those . The color is defined in html Thank you in advance __

Re: [Wtr-general] Image Uploading Problem....

2007-01-02 Thread Angrez Singh
Hi san, Try the following with watir 1.4 ie.file_field(:name, "file1").set("\"c:\\Program Files\\input.txt\"") Try appending double quotes to the name of the file. Regards, Angrez On 1/3/07, san <[EMAIL PROTECTED]> wrote: I'm with watir 1.4 & May Be Thats The Reason That ie.file_field(

Re: [Wtr-general] Referencing dynamically generated objects

2007-01-02 Thread Bret Pettichord
try .span(:text, 'A0MGdyn0.78108587205286') Use Watir 1.5. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Image Uploading Problem....

2007-01-02 Thread san
I'm with watir 1.4 & May Be Thats The Reason That ie.file_field(:name, "file1").set("c:\\Program Files\\input.txt") Is Not Working For Me... Ok Let Me Try 1.5 & Hope It Will Be Fine... - Posted via Jive Forums http://forums.o

[Wtr-general] Referencing dynamically generated objects

2007-01-02 Thread Dave Munns
Happy New Year! I have a question that concerns dynamically generated html tags and how to reference them. In a specific frame, a certain operation creates a new object. This object was given a name by my automation tool to make it unique and recognizable by my tool. I can reference the object

Re: [Wtr-general] Problem with Autoit?

2007-01-02 Thread Galina Maralina
It did work, thank you very much. Galina. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charley Baker Sent: Tuesday, December 26, 2006 1:29 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Problem with Autoit? Does it still fail if you ma

Re: [Wtr-general] javascript Menu

2007-01-02 Thread Charley Baker
Hey Nathan, Would you like to add this to the FAQs or the general Watir documentation? -Charley On 1/2/07, Nathan <[EMAIL PROTECTED]> wrote: So I will assume that you are talking about a menu that when your cursor is over it, the menu drops down or appears, and then you can click on a link, i

Re: [Wtr-general] CRITICAL---Clicking Image Button in Application

2007-01-02 Thread Nathan
Wow, well I'd simply try doing the same thing as you are doing, but if you're trying to click on something that has for its tag, then use ie.image(...) and not ie.button(...). ie.button(...) would be used if you were clicking on soomething with the tag . Natha

Re: [Wtr-general] Give a solution fo javascript popup

2007-01-02 Thread Charley Baker
Sure, the FAQ is on a wiki with global rights. Anyone can add to the FAQs. -c On 1/2/07, Cain, Mark <[EMAIL PROTECTED]> wrote: Do I have access to edit the FAQ page? I have a login. *--Mark* -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf

Re: [Wtr-general] javascript Menu

2007-01-02 Thread Nathan
So I will assume that you are talking about a menu that when your cursor is over it, the menu drops down or appears, and then you can click on a link, is this correct? Here is a brief code snippet from one of my scripts. I will explain it in detail. $objWatirBrowser.image(:id, "menu_SearchInv

Re: [Wtr-general] Give a solution fo javascript popup

2007-01-02 Thread Cain, Mark
Do I have access to edit the FAQ page? I have a login. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charley Baker Sent: Tuesday, January 02, 2007 2:38 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Give a solution fo j

Re: [Wtr-general] javascript Menu

2007-01-02 Thread Charley Baker
I've done it in two ways. Call ie.goto on the link that the menu item points to, kind of cheating, but it works for testing one of my apps. The other option is to fire a javascript event which generally brings up a hidden div or something of the like. ie.link(..).fire_event('onClick') ie.link(..)

Re: [Wtr-general] Give a solution fo javascript popup

2007-01-02 Thread Charley Baker
Mark, You mind posting that to the FAQ site? Definitely an FAQ and then you or anyone can send out the url. -Charley On 1/2/07, Cain, Mark <[EMAIL PROTECTED]> wrote: I have posted this many time, it is the most reliable JS popup method I have every used. It will even work for the input bo

Re: [Wtr-general] how to minimize the command prompt

2007-01-02 Thread Cain, Mark
Change this line from: c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} " to: c = "start rubyw #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} " --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [Wtr-general] Give a solution fo javascript popup

2007-01-02 Thread Cain, Mark
I have posted this many time, it is the most reliable JS popup method I have every used. It will even work for the input box (by supplying the user_input="whatever the user would input") and file upload dialog (by supplying user_input='&Save' or '&Open'). It is better and more reliable than the

[Wtr-general] javascript Menu

2007-01-02 Thread Balakrishna
Hello, Anyone handled javascript menu's using watir ??.. I'm sort of stuck at this point, I need to click on a javascipt drop down menu, but not able to click on the menu. Any ideas ? Balu ___ Wtr-general mailing list Wtr-general@rubyforge.org h

Re: [Wtr-general] CRITICAL---Clicking Image Button in Application

2007-01-02 Thread Dave Munns
Woud you post the html for the image? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5867&messageID=16714#16714 ___ Wtr-general mailing list Wtr-general@rubyforge.

Re: [Wtr-general] How do I click the "OK" button on a java alert?

2007-01-02 Thread Cain, Mark
I have found Autoit a little flaky. You can use what is already built into Watir. Here is a method I wrote to handle most of my popup needs.. You will need to use the newest gem if Watir (get it here http://wiki.openqa.org/display/WTR/Development+Builds) : require 'watir\contrib\enable

[Wtr-general] *.rbw extension behaves differently than *.rb

2007-01-02 Thread Alex Ciarlillo
For some reason when I run my program with a *.rbw extension (its a GUI app) the watir parts do not seem to execute. Watir never opens an IE window and just hangs indefinitely. When I run the same program with the *.rb extension it works just fine. Does anyone have any idea why this may be? th

Re: [Wtr-general] the problem about test cases organization.

2007-01-02 Thread Udo Fröhling
> But I don't konw how to set up the test-report in > Windows. > Copy them into ruby's "lib" directory directly? No, use the setup.rb and read the readme - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5943&

Re: [Wtr-general] assertion on the color of the row of a table

2007-01-02 Thread Željko Filipin
Is colour defined in html or css? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general