[wtr-general] Re: Unable to locate element

2009-05-19 Thread Jim Matthews
Kamesh, The other major cause of this problem is that your test is not where you think it is. That is, there is an error in your previous step that causes a problem so that the next thing you are looking for is not actually there. (Like the previous step is supposed to do something to take you t

[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread Jim Matthews
Lokesh, Your problem is not so much identifying objects as much as having your developers not change their ids. Your developers should be assigning unique ids to controls that you use including input fields and buttons. They should not be making arbitrary changes to ids, just like they should

[wtr-general] Re: Unexpected error when Run the code in Netbeans.

2009-04-22 Thread Jim Matthews
know the environment > deployment of it, :) > Thanks. > Wesley Chen. > > On Wed, Apr 22, 2009 at 12:13 AM, Jim Matthews wrote: > > > Wesley, > > > Have you set the "run" environment to use your externally installed > > Ruby instead of JRuby? > &g

[wtr-general] Re: Unexpected error when Run the code in Netbeans.

2009-04-21 Thread Jim Matthews
Wesley, Have you set the "run" environment to use your externally installed Ruby instead of JRuby? Watir will not run under JRuby. Go to Tools -> Ruby Platforms -> and add your externally installed Ruby platform. Then on each of your projects, you have to make sure that your project references

[wtr-general] Re: Error in handling popup

2009-04-09 Thread Jim Matthews
spike, There is a problem with the new version of Ruby that may be contributing to your problem. I don't use autoit, I use method that Lisa described. For more information on the problem, see: http://groups.google.com/group/watir-general/browse_thread/thread/c8e233ec27bebb85/02a19203ed99e262?l

[wtr-general] Re: Error in handling popup

2009-04-08 Thread Jim Matthews
spike, The only thing I see right off is that you have: wsh WIN32OLE.new('Wscript.Shell') My guess is that it should be: wsh = WIN32OLE.new('Wscript.Shell') That would seem to fit with the error you are getting: NoMethodError: undefined method `wsh' for # Jim On Apr 8, 7:26 am, spike wro

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Jim Matthews
Shweta, $ie.text_field(:name, "PolicyNumber").set($record ['PolicyNumber']) #error occured here If you are trying to put a value in a text_field, you need to use value, so your line would look something like this: $ie.text_field(:name, "PolicyNumber").value = ($record ['PolicyNu

[wtr-general] Re: Getting no such file to load error when working with excel

2009-03-31 Thread Jim Matthews
_require.rb:31:in > `require' > > Can anyone pls let me know > > On Mar 31, 9:36 am, Shweta wrote: > > > I have searched with the prevvious posts there you told to check the > > environment variables in advanced tab of mycomputer properties,I have > > checke

[wtr-general] Re: Getting no such file to load error when working with excel

2009-03-30 Thread Jim Matthews
Shweta, This sounds like the problem where you do not have RUBYOPT defined as - rubygems. Search the site for help on this and if you still have trouble, update with additional information. Jim On Mar 30, 6:40 am, Shweta wrote: > Hi > > When i was trying to parameterize with excel for login p

[wtr-general] Re: click_no_wait and click! not working

2009-03-23 Thread Jim Matthews
(2) do Note that I give this as a temporary solution until the wait_until is fixed. Jim On Mar 3, 10:52 am, Jim Matthews wrote: > Here are the steps to reproduct the problem.  First bring up unittests > \html\popups1.html in IE. > > \Ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\unittests

[wtr-general] Re: Invoking a .bat file

2009-03-19 Thread Jim Matthews
Zeljko, When I click on the link you provided, I get a page not found from githubpages. Jim On Mar 18, 6:27 am, Željko Filipin wrote: > On Wed, Mar 18, 2009 at 12:24, venky wrote: > > How to invoke a .bat file from watir script > > `file.bat` > > http://atog.be/2007/7/24/ruby-backticks/ > > Ž

[wtr-general] Re: select_no_wait function does not work for download pop up handling.

2009-03-17 Thread Jim Matthews
I have been trying to figure out what the problem is with click_no_wait method for a couple of weeks. I expect your problem is related to mine. I believe I have narrowed it down to the following, but I do not have an answer yet. click_no_wait builds a string to execute in a separate shell. It

[wtr-general] Click it twice to make it work?

2009-03-12 Thread Jim Matthews
Have any of you run into this problem before? You have to click a button or link or image twice to get it to take effect? I actually have run into this problem some in manual testing and usually with an image. The first time I click it, nothing happens. The second time I click it takes me where

[wtr-general] Re: Error while running popup script on eclipse

2009-03-06 Thread Jim Matthews
I believe what you are seeing is a problem that several of us are seeing with click_no_wait. The main symptom is that you see the button or link flash but no popup comes up. Since it works for some of us with the same Ruby / Watir combination, I think it must be some sort of system setting that

[wtr-general] Re: enabled_popup internal error

2009-03-05 Thread Jim Matthews
One thing I forgot to mention: someone else got click_no_wait to work by going into IE ->Tools -> Internet Options...->Advanced and under Security, check the box titled "Allow active content to run in files on My Computer". Jim On Mar 5, 9:32 am, Jim Matthews wrote: > Gl

[wtr-general] Re: enabled_popup internal error

2009-03-05 Thread Jim Matthews
is >     puts "Trying to click on " + button_label >     w.clickWindowsButton_hwnd( hwnd, button_label ) >     # >     # this is just cleanup >     w=nil >   else >     puts "No popup found" >   end > end > > On a side note, why is enabled_popup

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews
(works fine) >     sleep 5 >     startClicker(roles_page.logon_frame, "OK")   # call function above > end > > logon_frame is actually a reference. I am thinking the first > parm might be wrong, but what should it be? The browser ref? > On Mar 4, 1:44 pm, Jim Matthews

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews
utton I > know will cause a popup, and then call enabled_popup. The call from > enabled_popup never returns. I can post the entire exception trace if > that helps. > > On Mar 4, 8:26 am, Jim Matthews wrote: > > > From your first post, I am not sure how you are trying to use >

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews
      end >       # use hwnd() method to find the IE or Container hwnd (overriden > by IE) >       if hwnd_modal == hwnd() || 0 == hwnd_modal >         hwnd_modal = nil >       end >       hwnd_modal >     end >   end > end > > On Mar 3, 1:49 pm, Jim Matthews wrote:

[wtr-general] Re: enabled_popup internal error

2009-03-03 Thread Jim Matthews
I thought you were having the same problem I am with popups, but I think yours is different at this point. The window handle is going to be on the browser and not a part of the DOM. You have to get the hwnd off the browser and go from there. Jim On Mar 3, 1:16 pm, andrew.d...@lthree.com wrote:

[wtr-general] Re: click_no_wait and click! not working

2009-03-03 Thread Jim Matthews
quot; if browser.enabled_popup puts "In if in popupchecker." hwnd = browser.enabled_popup(5) puts hwnd.to_s w = WinClicker.new w.makeWindowActive(hwnd) w.clickWindowsButton_hwnd(hwnd, text) end rescue Timeout::Error

[wtr-general] click_no_wait and click! not working

2009-03-02 Thread Jim Matthews
I am trying to deal with javascript popups. I have created the popupchecker method described on the wiki. When I used click_no_wait, the popup came up but was not dismissed. Someone suggested that I try click! instead of click_no_wait because of some problems mentioned in recent posts. I did t

[wtr-general] Re: LoadError: 14001: This application has failed to start because....

2009-02-24 Thread Jim Matthews
That error has been around a long time and only concerns the documentation for builder. I has no effect on the way it runs. Jim On Feb 24, 10:20 am, AR wrote: > While viewing the watir installation again, I do get one error, but it > seems to be fairly innocuous: > > ERROR:  While generating d

[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Jim Matthews
BYOPT = rubygems > > Thanks > Smita > > On Mon, Feb 23, 2009 at 12:45 PM, Jim Matthews wrote: > > > Usually when you get a load error on a gem that really is installed, > > it is because the environmental variable RUBYOPT is not set. > > > Check your environment

[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Jim Matthews
Usually when you get a load error on a gem that really is installed, it is because the environmental variable RUBYOPT is not set. Check your environmental variables and if RUBYOPT is not set to - rubygems, then add it. You can find environmental variables in the Advanced tab of "My Computer" "Pr

[wtr-general] Re: Installing Watir

2009-02-23 Thread Jim Matthews
t option, but I have to install on everyones machine, so I > will look for it. > > Thanks, > > Darin > > -Original Message- > From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] > On Behalf Of Jim Matthews > Sent: Monday, February 2

[wtr-general] Re: Installing Watir

2009-02-23 Thread Jim Matthews
I believe that the: RUBYOPT - Value = -rubygems is controlled by the "enable Ruby gems" setting in the install process. Make sure you select the enable Ruby gems and it creates the variable if it does not exist. Jim On Feb 23, 10:55 am, Moochie wrote: > Why doesn't it automatically update yo

[wtr-general] Re: Problem displaying XML file with XSL in Firefox and Safari

2009-01-30 Thread Jim Matthews
Does Firefox require a plugin to make this work? On Jan 30, 9:44 am, Jim Matthews wrote: > Good that you could read my mind and know that I was talking about XSL > instead of xls. > > Anyway, I tried your new stylesheet and it still works for me in IE > but it still does not

[wtr-general] Re: Problem displaying XML file with XSL in Firefox and Safari

2009-01-30 Thread Jim Matthews
can add to the stylesheet so you can view > > the results in Firefox.  If you add this line of code to the > > stylesheet after line 2, it works for me. > > > > > > I can post a new stylesheet to the wiki. > > > Hope this helps! > > > -Tiffany > >

[wtr-general] Problem displaying XML file with XLS in Firefox and Safari

2009-01-29 Thread Jim Matthews
I am using ci_reporter to produce XML output from test runs from Watir tests. Tiffany supplied an XLS file to reference in the XML file, which works fine in IE. The problem is that when you try to view the XML file in Firefox or Safari, the file looks like raw XML. I was wondering if anyone had

[wtr-general] Re: Anyone have a way of converting ci_reporter XML to pretty html?

2008-12-05 Thread Jim Matthews
orter could complete it's tasks before I tried > to do anything with the results file. > > Let me know if you have and questions or problems. > > -Tiffany > > On Dec 5, 9:32 am, Jim Matthews <[EMAIL PROTECTED]> wrote: > > > I have gotten cruisecontrol.rb runn

[wtr-general] Anyone have a way of converting ci_reporter XML to pretty html?

2008-12-05 Thread Jim Matthews
I have gotten cruisecontrol.rb running with ci_reporter and the ci_reporter XML files into the build artifacts directory. The problem is, it is the ugly ci_reporter xml output. I would like to have something that converts all the ci_reporter xml files into one, pretty report. Has anyone done th

[wtr-general] Re: Getting error at installing 1.6.1

2008-11-06 Thread Jim Matthews
I believe I have gotten that error message every time I installed Builder. It occurs while building the documentation and does not affect how builder functions. It should work OK in spite of the error. Jim On Nov 6, 11:56 am, Michael Hwee <[EMAIL PROTECTED]> wrote: > Hi Bret, > > Followed instr

[wtr-general] How close are we to be able to run common tests with Watir and FireWatir

2008-11-04 Thread Jim Matthews
efox. Let us know what issues you have. I have started to run existing Watir tests I have with 1.6.1 on IE and Firefox. Although I have not finished testing, a number of them run with little or no modification. So, "Who am I?" Jim Matthews. I have worked with Bret at a previous com

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-03 Thread Jim Matthews
i download them, they have these names: > > commonwatir-1.6.1.gem > firewatir-1.6.1.gem > watir-1.6.1.gem > > (Which are the same names they had when i uploaded them) > > Bret > > Jim Matthews wrote: > > I downloaded all three files like the instructions at > >http://wi

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-03 Thread Jim Matthews
[1].6.1.gem Jim On Nov 3, 11:07 am, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Somehow the filename of the gem changed when you downloaded it. I think > that is the source of your problem. > > Bret > > Jim Matthews wrote: > > I am trying to install Watir 1.6.1 on

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-03 Thread Jim Matthews
I am trying to install Watir 1.6.1 on Ruby 1.8.6-27 and am having a problem. It looks like the problem you have when you are behind a proxy, but I am not behind a proxy. I downloaded all three watir gem files into the same directory. When I try to do the gem install, here is what happens: C:\I