RE: [Wtr-general] Help get data from Table

2005-07-21 Thread Cain, Mark
You could also do: 1. Right Click and select view source 2. Ctrl + f and enter table 3. Click 'Find Next' NOTE: that is table index 1 4. Continue clicking 'Find Next' (and counting) until the desired table is reached. This is tedious I know but works pretty well especially if you have nested

RE: [Wtr-general] Click OK button on Popup Dialog?

2005-07-25 Thread Cain, Mark
Hue, you have to start the WinClicker BEFORE you click the button that produces the popup. I have a function (right out of the unittests) #Popup clicker def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub(/ , \\ ) shortName =

RE: [Wtr-general] Sending Email Notifications

2005-07-27 Thread Cain, Mark
This works if you have the CDOEX.DLL on you machine. require 'win32ole' cdoMail = WIN32OLE.new(CDO.Message) cdoMail.From = [EMAIL PROTECTED] cdoMail.To = [EMAIL PROTECTED] cdoMail.Subject = This is a test cdoMail.TextBody = This is a test cdoMail.Send cdoMail = nil

RE: [Wtr-general] Sending Email Notifications

2005-07-28 Thread Cain, Mark
I got the same error when I first ran it. I changed the case of .send to .Send and it worked and continues to work. You might try retyping that line yourself making sure our capitalize .Send. I know it shouldnt matter but sometimes it does. I also ran it line by line in IRB and could see

RE: [Wtr-general] XML Logging with Builder

2005-08-03 Thread Cain, Mark
Do you have any good example on using Builder and REXML you could share? Thanks, --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Kohl Sent: Wednesday, August 03, 2005 12:18 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] XML Logging

Re: [Wtr-general] How to click the Windows'Save'buttonwhendownloading a file

2005-09-15 Thread Cain, Mark
Title: Re: [Wtr-general] How to click the Windows'Save'buttonwhendownloading a file Try this, it works on my computer.  You may need to change the required path to your Watir install directory.  Change the location to save to to some save path of your choosing $LOAD_PATH.unshift

Re: [Wtr-general] How to click theWindows'Save'buttonwhendownloading a file

2005-09-15 Thread Cain, Mark
Title: Re: [Wtr-general] How to click the Windows'Save'buttonwhendownloading a file This also works $autoit.ControlSetText(Save As, , Edit1, #{$path}temp.pdf) --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: Thursday, September

Re: [Wtr-general] Is there a way to select items in the select listbased on their position?

2005-09-28 Thread Cain, Mark
I had a similar problem, a set of dropdowns whose values are determined by whatever is previously selected in the preceding dropdown. Mine happened to be in a new window that was popped up but the principle is the same. What I needed to do was look at the View Source for the page and

Re: [Wtr-general] OT: double-quotes and substitution in same string?

2005-09-28 Thread Cain, Mark
What about this it worked for me: '?xml version=1.0 encoding=UTF-8...' + #{a} + '...' --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon Sent: Wednesday, September 28, 2005 2:55 PM To: wtr-general@rubyforge.org Subject: [Wtr-general]

Re: [Wtr-general] order of action/step in the console

2005-10-12 Thread Cain, Mark
Annoying isn't it? 8-P What I had to do was number my test so: def test01_login puts Action 1: ... #. .. end def test02_goto_moduleA puts Action 2: ... #.. end def test03_add_item_toModuleA puts Action 3: ... #.. end There may be a better way of doing it but it worked so why

Re: [Wtr-general] Table style attribute changes

2005-10-14 Thread Cain, Mark
This will work as long as this statement: tbl = $ie.table(:id, /someuniqueid/) is after any dynamically changed items on the page. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Gargan Sent: Friday, October 14, 2005 6:57 AM To:

Re: [Wtr-general] How to check if a particular row exists in a table?

2005-10-17 Thread Cain, Mark
What I had to do was do a view source on the page and find the desired table using IEs find function (searched for table). Starting at the top of the page I would count the number of tables (using find next) until I got to the desired tablethe count number being the index of that table (I

[Wtr-general] Getting double emails from wtr-general@rubyforge.org

2005-10-25 Thread Cain, Mark
Anyone else getting double emails fro this address? It has been happening for the past week. Mark L. Cain LMIT - E*STARS ~ Lead Test Engineer 1981 Snyder, MSIN: G3-62, Richland, WA 99354 [EMAIL PROTECTED] 509.376.5458 640 Kilobytes of computer memory ought to be

Re: [Wtr-general] Testing If a Checkbox is Checked by Default

2005-10-26 Thread Cain, Mark
Try this: assert(@is.checkbox(:value, other_offers).isSet?) A good resource for examples like this are the unittests, which are installed with WATIR. Hope this helps, --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Terry Peppers Sent: Wednesday,

[Wtr-general] Help with attach

2005-10-26 Thread Cain, Mark
Im stuck! I have an application that generates a reportthe user: Selects the reports tab Chooses the desired report Select the division and date interval to report on Clicks the Submit button When the submit button is clicked a new window opens (the report itself) with the

Re: [Wtr-general] dynamically discover page

2005-10-28 Thread Cain, Mark
Would this also work?: ie.selectBox.each {|sb| sb.select_value = /MDT|MPT/} --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Thursday, October 27, 2005 10:09 PM To: wtr-general@rubyforge.org; beth ferguson Cc:

Re: [Wtr-general] dynamically discover page

2005-10-28 Thread Cain, Mark
I figured it out, here it is for those interested: $ie.select_lists.each {|sb| sb.select_value(/^M(PT|DT)/)} --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: Friday, October 28, 2005 10:41 AM To: wtr-general@rubyforge.org Subject

Re: [Wtr-general] Best practices posting back to parent windowfromchild window

2005-11-17 Thread Cain, Mark
You might try $ie.status() --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eugene Kula Sent: Wednesday, November 16, 2005 10:19 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Best practices posting back to parent windowfromchild window

Re: [Wtr-general] Open new browser after clicking button

2005-11-17 Thread Cain, Mark
One of the things you can do is an IE setting. In IE: 1. Select the menu item Tools Internet Options. 2. Select the Advanced tab. 3. Under the heading Browser, uncheck the option Reuse windows for launching shortcuts 4. Click Apply The other option is have your developers force a

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

2005-12-06 Thread Cain, Mark
I have just the opposite, a website running on SUSE Linux in VMWare and testing it using WATiR. Not a single problem, although the client (desktop) version of VMWare doesn't like to persist in a idle state. In other words I cannot just turn the VM on and let it run indefinitely and not be

Re: [Wtr-general] How to manipulate attaching files

2005-12-15 Thread Cain, Mark
Try something like this using file_field instead of text_field: $path = C\:\\watir_bonus\\working\\Approach.doc $ie.frame(:index, 5).file_field(:id, fileName).set(#{$path}) $autoit = WIN32OLE.new(AutoItX3.Control) $autoit.WinWait(Choose file, Do you want to open or save this

Re: [Wtr-general] selecting cells in Excell using activecell

2006-01-04 Thread Cain, Mark
This you might find helpful http://rubygarden.org/ruby?ScriptingExcel Also, I was playing around with your script and this worked for me: sheet = application sheet.activecell.offset(1,0).activate --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [Wtr-general] How can I open and attach file using file_fieldmethod?

2006-01-05 Thread Cain, Mark
Yes, the problem is (:value, Value) in this line: ie.file_field(:value,'Value').set(#{path}) The file_field supports these attributes: :id, :name, :index. Do a view source and find out what the attribute values for your input type = file tag. If for some reason your developers were

Re: [Wtr-general] How can I open and attach file usingfile_fieldmethod?

2006-01-06 Thread Cain, Mark
).click But still the same behaviour was seen. The file field was accessed and the Choose File window opened and waited till I manually selected the file. Thanks Chaya Cain, Mark [EMAIL PROTECTED] wrote: Yes, the problem is (:value, Value

Re: [Wtr-general] Javascript alert/confirm

2006-01-06 Thread Cain, Mark
This has worked pretty well for me. #Put this method in your script: def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub(/ , \\ ) shortName = w.getShortFileName(longName) c = start ruby #{shortName }\\watir\\clickJSDialog.rb #{button } #{

Re: [Wtr-general] How can I open and attach file using file_field method?

2006-01-12 Thread Cain, Mark
Then itwaits for me to manually select the file and attach. I have ensured that the path is correct and there is atext file viz. file in the Watir folder. Thanks, Chaya Cain, Mark [EMAIL PROTECTED] wrote: Replace all your $autoit lines with this: $autoit

Re: [Wtr-general] How can I open and attach file using file_fieldmethod?

2006-01-16 Thread Cain, Mark
Here is one thing I see that was a problem for me. I need to escape the backslashes and colon in my file path. Try using this: $path = C\:\\Watir\\file.txt Hope this helps, --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent

Re: [Wtr-general] Tricky checkbox selection

2006-01-23 Thread Cain, Mark
Title: Tricky checkbox selection When you installed Watir, the API doc was also installed. This is straight from that doc: checkbox(how, what=nil ,value=nil) This is the main method for accessing a check box. Usually an input type = checkbox HTML tag. * how - symbol - how we access

Re: [Wtr-general] Tricky checkbox selection

2006-01-23 Thread Cain, Mark
Title: Tricky checkbox selection You dont need to just try something like this. $ie.checkbox(:name, /Add_member/i, 35).set You can use regular expressions for your attribute name if you know part of what that name will be at runtimealthough it does get tricky when attribute names

Re: [Wtr-general] Tricky checkbox selection

2006-01-23 Thread Cain, Mark
=Add_member[] value=27 /td td Test2 /td/tr tr td input type=checkbox name=Add_member[] value=35 /td td Test3 /td/tr From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: Monday, January 23, 2006 1:38 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Tricky

Re: [Wtr-general] Another JavaScript Question

2006-01-26 Thread Cain, Mark
This is what I would try given the html you sent. $ie.table( :index, 1 )[1][3].click If this table is nested inside other tables you will need to get the index number by counting the tablesstarting at the top-most tableby doing a: Right click in the web page and select View

Re: [Wtr-general] My Tab Click problem

2006-02-01 Thread Cain, Mark
name=com.cc.framework.state id=com.cc.framework.state value=ctrl=pstabset;first=tab1;selected=tab2 alt=src= Is there a way to use this info to access tab2? Thanks, -g --- Cain, Mark [EMAIL PROTECTED] wrote: Is the wizard a separate window that opens? If yes

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

2006-02-03 Thread Cain, Mark
Probably a better use of your time would be to go through the unittests (in the Watir install directory) for examples of usage. There is not much that I have encountered that does not have a fairly decent representation in the unittests; and they are maintained a little better than the

Re: [Wtr-general] Are there any References to Ruby/Watir written byTesters?

2006-02-09 Thread Cain, Mark
My $.02 I have found the unittests invaluable for leaning a Watir as well as automation test case structure. I have ripped-offborrowedsome much from that source, and customized for my need, I cant even begin to tell you! The learning curve can be steep down the automation path, but if

[Wtr-general] Python to Ruby

2006-02-14 Thread Cain, Mark
Does anyone know of a tool that can take an existing Python script and convert it to Ruby? Or has anyone had any experience converting Python to Ruby? I have some internal scripts that I would like to convert to Ruby and dont want to reinvent to wheel doing it. Thanks,

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

2006-03-02 Thread Cain, Mark
I have some Watir script I wrote about 6 months ago and needed to do some regression testing using these scripts. Well when I began running them they were really slow! Where it used to take 15 to 20 seconds to fill out the page form now is taking 3 to 4 minutes. I have recently upgraded my

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

2006-03-02 Thread Cain, Mark
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 scripts that are slow. Bret On 3/2/06, Cain, Mark [EMAIL PROTECTED] wrote: I have some Watir script I wrote about 6

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

2006-03-02 Thread Cain, Mark
that Problem is spelled Probelm below, right? ---Michael B. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: March 2, 2006 4:17 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Older scripts running really slow... With Watir 1.4.1 (just downloaded

Re: [Wtr-general] Extracting contents of a list box in a table

2006-03-03 Thread Cain, Mark
Title: Nachricht When adding dynamic content to a table what I have had to do is something like: #Load the contents of the table and its objects into the table variable table = $ie.table(:index, 2) table[3][2].click $ie.text_field(:name, ' ctl00$pageBody$FavouriteArtistsTextBox

[Wtr-general] What is the trick to getting xpath to work.

2006-03-13 Thread Cain, Mark
I have been trying to get xpath to work in my scripts but have not been able to do so. I have the latest from trunk (Version $Revision: 934 is what it says in the watir.rb file) and ruby 1.8.4-16 and whatever REXML comes with that. Here is the error I am getting: 1) Error:

[Wtr-general] Watir is resetting one of my selectBox selections.

2006-03-14 Thread Cain, Mark
I am running into issue where during a test. I select a value from select box (1) and based on that value a span tag is shown with another select box (2) and I make a selection from that select box (2). A little further down in my script I do a search for a checklist and when the page

Re: [Wtr-general] Watir is resetting one of my selectBox selections.

2006-03-14 Thread Cain, Mark
performing the Search? Paul. On 14/03/06, Cain, Mark [EMAIL PROTECTED] wrote: I am running into issue where during a test. I select a value from select box (1) and based on that value a span tag is shown with another select box (2) and I make a selection from that select box (2). A little

Re: [Wtr-general] Watir is resetting one of my selectBox selections.

2006-03-14 Thread Cain, Mark
selections. Is there a _javascript_ function that resets the select box by any chance? Quoting Cain, Mark [EMAIL PROTECTED]: yes --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, March 14

Re: [Wtr-general] Watir is resetting one of my selectBox selections.

2006-03-15 Thread Cain, Mark
Done. http://jira.openqa.org/browse/WTR-15 --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Tuesday, March 14, 2006 4:07 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Watir is resetting one of my selectBox

Re: [Wtr-general] Error when window closes using IE.attach

2006-03-16 Thread Cain, Mark
. This in any case a bug. Feel free to post it to Jira if you'd like to see a fix. Bret On 3/15/06, Cain, Mark [EMAIL PROTECTED] wrote: I am getting the following error when the window I have attached to closes and returns to the main windowactually the main window closes too and the error

Re: [Wtr-general] OT: big 'ol variables?

2006-03-20 Thread Cain, Mark
Did you intend to put a space between and END_OF_SQL? str END_OF_SQL (buncha sql) END_OF_SQL it looks like there is not supposed to be one in the documentation. str END_OF_SQL (buncha sql) END_OF_SQL --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [Wtr-general] OT: big 'ol variables?

2006-03-20 Thread Cain, Mark
You also might need an '=' str = END_OF_SQL (buncha sql) END_OF_SQL --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: Monday, March 20, 2006 1:13 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] OT: big 'ol variables

Re: [Wtr-general] How can my script wait until a new window hasfinished loading before using IE.attach?

2006-03-20 Thread Cain, Mark
I had the same problem with one of the application I test and what I had to do is something like: $ie.link(:text, 'View Report').click ↓ the url (or part of) initially displayed in the title bar ie2 = IE.attach( :url, /index.html/i ) puts ie2.status() ie2 = IE.attach( :title,

Re: [Wtr-general] Unable to checkout Fire Watir

2006-03-29 Thread Cain, Mark
If you are using Windows, I would recommend installing TortiseSVN at: http://tortoisesvn.tigris.org/. This is an open source Subersion client that integrated with windows explorer. Once that is done, right click on your folder on your desktop (or wherever) and select TortiseSVN

Re: [Wtr-general] Update opens up another window with updated page butcontrol stays in the orginal window and not able to move tonext page in the flow from orginal window

2006-03-30 Thread Cain, Mark
If you could post the code from your script and the HTML page your testing that would be helpful. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prakash Sattu Sent: Thursday, March 30, 2006 10:09 AM To: wtr-general@rubyforge.org Subject:

Re: [Wtr-general] W3C validation problems

2006-04-03 Thread Cain, Mark
You should be able to do: ie = IE.new ie.goto 'http://validator.w3.org/' ie.html --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jørgen Bang Erichsen Sent: Monday, April 03, 2006 2:01 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] W3C

Re: [Wtr-general] SciTE Repeats Input Chars in IRB

2006-04-04 Thread Cain, Mark
You can type: Cmd Echo off Cd \ruby\bin Irb Ruby code here But this is just a command window inside SciTE. It is a much better experience via a command window. If you want an IRB window inside your editor, download the latest version if FreeRide and it has one built in.

Re: [Wtr-general] Asking two questions related on javascript pop upwindow

2006-04-13 Thread Cain, Mark
You need to have defined the startClicker() method somewhere in your script.  It is mostly reliable. Do something like this: require 'watir/WindowHelper' require 'watir' require 'toolkit/onc_login' require 'toolkit/onc_logout' require 'toolkit/_javascript_Hd' # Add this method to

Re: [Wtr-general] Question about Select-Lists

2006-04-18 Thread Cain, Mark
Try something like this to get all select_list contents: myList = $ie.select_list( :name, 'select1').getAllContents If you wanted to select everything in the list you could do this: for lst in myList $ie.selectBox( :name, 'select1').select(#{lst}) end Hope this helps,

Re: [Wtr-general] Trying to understand the UnitTests directorymanipulation

2006-04-20 Thread Cain, Mark
This is right out of the pickaxe 2nd edition pages 336 - 337. __FILE__ String The name of the current source file. [r/o] The constant __FILE__ and the variable $0 are often used together to run code only if it appears in the file run directly by the user. For example, library writers

Re: [Wtr-general] [ANN] RuMBA

2006-05-01 Thread Cain, Mark
If you are not aware of this Microsoft change to Internet Explorer then you should be since FLASH is an ActiveX implementation in IE. The result of this change will require some human interaction (clicking the spacebar or enter key) before the FLASH object will be invoked inside IE. I dont

Re: [Wtr-general] Ruby IDE

2006-05-03 Thread Cain, Mark
Komodo is a pretty good IDE and has a good debugger but the personal version cost 30 buckI have also had some performance problems with this IDE with Watir version 1.5.x. If you want free, try Eclipse with the RDE and the SVN plug-ins. Eclipse is the one I end up using the most.

Re: [Wtr-general] [War-general] Ruby IDE

2006-05-04 Thread Cain, Mark
a data structure helped any more than simply using Emacs breakpoint. --jw. On 5/3/06, Cain, Mark [EMAIL PROTECTED] wrote: Komodo is a pretty good IDE and has a good debugger but the personal version cost 30 buck-I have also had some performance problems with this IDE

Re: [Wtr-general] How can I access object under iframe?

2006-05-15 Thread Cain, Mark
You might have to play around with different combinations of this but try: $ie.frame(:name, name).show_all_objects $ie.frame(:name, id_name).frame(:name, nested_name).show_all_objects Whatever object are displayed can be accessed at that level. You may need to do a Veiw Source on

Re: [Wtr-general] Tricky select list

2006-05-17 Thread Cain, Mark
Did you try: #doesn't appear that your select_list has a name or id given so you will #have to find the index-it will be the nth one from the top of the page #using view source. $ie.select_list(:index, 1).select_value('0') or $ie.select_list(:index, 1).select('All') --Mark

Re: [Wtr-general] need help with radio button

2006-05-18 Thread Cain, Mark
There must be something else wrong because I put the following in a web page: input type=radio name=selectionids value='8bf19f48-9462-4285-90ef-241f4fd5f7f7' input type=radio name=selectionids value='8bf19f48-9462-4285-90ef-241f4fd5f7f8' input type=radio name=selectionids

Re: [Wtr-general] Watir 1.5.x Performance Issues?

2006-06-12 Thread Cain, Mark
I have seen significant slowness running my scripts (1.4.1 and 1.5.1) from inside Komodo 3.5 compared to the same scripts inside EclipseEclipse is much faster. Pouncer Note: I only run them inside the IDE when writing and/or debugging and NOT during actual testing. Just in case you were

Re: [Wtr-general] JS pop-up trouble, new methods in 1.5.1?

2006-06-19 Thread Cain, Mark
Cut and paste this method in your script exactly as is: # method to click JS popups def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub(/ , \\ ) shortName = w.getShortFileName(longName) c = start ruby #{shortName }\\watir\\clickJSDialog.rb

Re: [Wtr-general] Did the implementation for contains_text change?

2006-06-27 Thread Cain, Mark
I was attempting to use text.include? like: $ie.text_field(:name, MyText).text.include? My text to verify And I get this message: warning: parenthesize argument(s) for future version Am I getting this because I am using text.include? incorrectly or something else? Thanks,

Re: [Wtr-general] File Download Pop-Ups

2006-06-29 Thread Cain, Mark
I ended up having to put a sleep 2 in winClicker to get this to click the button. At approximately line 299 in WinClicker.rbthis section: if d != -1 makeWindowActive(hwnd) sleep 2 clickButtonWithHandle(d) else After I added this then it would click the specified button.

Re: [Wtr-general] Attaching a Popup

2006-07-18 Thread Cain, Mark
What you are trying to do can't be done with the version of Watir.rb you are using because the page you are trying to attach to is a Modal window. Try this one at: https://svn.openqa.org/svn/watir/branches/modal_dialog/watir/ (you will also need the files from the Watir folder--the IEDialog and

Re: [Wtr-general] Getting problem in calling click event where variousbuttons have the same name

2006-07-18 Thread Cain, Mark
Starting at the topmost delete button, count them until you get to the desired button. $ie.button(:index,3).click -- would click the third from the top delete button on the page. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of VIKASH KUMAR

Re: [Wtr-general] Install problem?

2006-07-18 Thread Cain, Mark
Title: Install problem? I have always had to install rubygems for a new ruby install. Get the gem here: http://rubyforge.org/projects/rubygems/ Download it somewhere. Open a command prompt and navigate to where you downloaded it. Type gem install rubygems*.gem This fix the same

Re: [Wtr-general] Install problem?

2006-07-18 Thread Cain, Mark
Windows XP PCs (one SP1, the other SP2). Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Cain, Mark Sent: Tuesday, July 18, 2006 8:14 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Install problem? I have always had to install

Re: [Wtr-general] selecting multiple values from on list and passing itto other list

2006-07-19 Thread Cain, Mark
You could do something like this: dbList = $ie.select_list( :name, 'assigned').getAllContents for dbl in dbList $ie.selectBox( :name, 'assigned').select(#{dbl}) end Hope this helps, --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [Wtr-general] IE7 and Popups

2006-07-25 Thread Cain, Mark
Of Cain, Mark Sent: Tuesday, July 25, 2006 9:45 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] IE7 and Popups I have recently started having to regression test all our web applications using IE7 beta3. Most everything seems to work except pop-ups (Confirms, Alerts, and Prompts). This part

Re: [Wtr-general] Proxy server login

2006-08-03 Thread Cain, Mark
Title: Proxy server login In IE there are several authentication settings. Open IE Tools Internet Options and click the security tab. Click the custom levels button and scroll down until you reach the User Authentication area. Most applications authenticate to the currently logged in

Re: [Wtr-general] How to check for opened IE windows?

2006-08-09 Thread Cain, Mark
Do you see this -- Web Page Dialog in the title bar of your popup pages? If yes then you are dealing with a modal web page and you will NOT be able to attach the normal way using Watir. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Sent:

[Wtr-general] Error clicking a button...

2006-08-31 Thread Cain, Mark
I am getting the following error when I click a Save button on a page. The application has several tabbed pages and on each is the same Save, Submit, and Clear button pattern. The other tab pages click the save button without error. This error occurs after attaching and closing a Non-modal

Re: [Wtr-general] Error clicking a button...

2006-08-31 Thread Cain, Mark
closes then only a very small part of the object show in the output, and then the error. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: Thursday, August 31, 2006 10:46 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Error

Re: [Wtr-general] I am a newb

2006-09-01 Thread Cain, Mark
When buttons all have the same names and id etc, you will need to use $ie.button(:index, x).click where x is the 1-based index of the button you want to click (from the top down). So if there are 3 cancel buttons on the page and you want to click the 2nd one then your code will look like this:

Re: [Wtr-general] I am a newb

2006-09-01 Thread Cain, Mark
Using :index it doesn't. What it is doing if finding the Xth button from the top of the page (you could count them from view source). I have to use this quite often in the applications I test because of auto-generated page elements which use the same button attributes (id, name, and values) for

Re: [Wtr-general] I am a newb

2006-09-05 Thread Cain, Mark
Make sure the default ruby install directories (bin and lib) are in the PATH environment variable. The ruby installer should have done this by default, but maybe it didn't. For me it is: C:\ruby\bin;c:\ruby\lib Hope this helps, --Mark -Original Message- From: [EMAIL PROTECTED]

Re: [Wtr-general] Error clicking a button...

2006-09-05 Thread Cain, Mark
What appears to be happening is the $ie object is not retaining the page objects during the attachment to the non-modal window (I am probably not describing this right). Because when I put these two line of code: table = $ie.table(:index, 8) table[1][5].click Immediately after when

Re: [Wtr-general] Error clicking a button...

2006-09-05 Thread Cain, Mark
This was code I wrote awhile ago (when $ie.wait didn't work right) and was getting back to update. The call to $ie.wait? didn't work but $ie.wait did (seems to be a bit faster then before). I still get the same error message I originally posted until I put call that reloads the page in, and

Re: [Wtr-general] Error clicking a button...

2006-09-05 Thread Cain, Mark
/tc_PER_Significant.rb:261:in `test5_ca' --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Tuesday, September 05, 2006 12:57 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Error clicking a button... Cain, Mark wrote

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

2006-09-11 Thread Cain, Mark
Will this handle modal windows and JS popups now? Has that modal window code been merged into the main branch now? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Schmidt Sent: Monday, September 11, 2006 9:07 AM To:

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

[Wtr-general] Click_no_wait error inside nested/sub frames

2006-09-15 Thread Cain, Mark
I am getting this error: 1) Error: test0_Acquire_Add_Comments(TC_Acquire_New): SystemStackError: stack level too deep C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574:in `attach_command' C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574:in `attach_command'

Re: [Wtr-general] Click_no_wait error inside nested/sub frames

2006-09-18 Thread Cain, Mark
, Cain, Mark [EMAIL PROTECTED] wrote: I am getting this error: 1) Error: test0_Acquire_Add_Comments(TC_Acquire_New): SystemStackError: stack level too deep C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574:in `attach_command' C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574

[Wtr-general] What happened to the enabled_popup method?

2006-09-18 Thread Cain, Mark
What happened to the enabled_popup method? I have been using it quite effectively up through 1081 and in 1084 it is gone. Was this replaced by a better more robust method, or is there a preferred method to replace this functionality? I know Watir is being changed to add new features, and fix

Re: [Wtr-general] unable to use Click_no_wait on buttons inside a frame.

2006-10-03 Thread Cain, Mark
This (I believe) was fixed 1095.  You can download the latest gem at: http://wiki.openqa.org/display/WTR/Development+Builds --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Ark Sent: Monday, October 02, 2006 2:53 PM To:

Re: [Wtr-general] Javascript Alert windows

2006-10-04 Thread Cain, Mark
Try this: require 'watir\contrib\enabled_popup' Your code # use click_no_wait to click the button that invokes the JS Alert $ie.button.click_no_wait hwnd = ie.enabled_popup(5) # get a handle if one exists if (hwnd)# yes there is a popup w =

Re: [Wtr-general] Javascript Alert windows

2006-10-05 Thread Cain, Mark
The _javascript_ Alert, Confirm, Prompt, Security, File Save, File Download, File Upload, error message, and login (I think this is a complete list but there may be others) are all a special type of modal popup dialog windowthere isnt a different one. In order to handle these types of

Re: [Wtr-general] Javascript Alert windows

2006-10-09 Thread Cain, Mark
file so that it is no longer found by enabled_popup. If you look in the watir.rb file for GetWindow and move those definitions into the enabled_popup.rb file then it should work fine. David Schmidt Matt Johnson wrote: On 10/5/06, *Cain, Mark* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote

Re: [Wtr-general] Wikipedia Article Feedback

2006-10-10 Thread Cain, Mark
I haven't had this issue using Ruby 1.8.5_21 and Watir 1.5.x. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Monday, October 09, 2006 10:04 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] Wikipedia Article Feedback

Re: [Wtr-general] Need help to test Flash Application

2006-10-18 Thread Cain, Mark
You cannot use Watir to test Flash application. There are tools like WinRunner that can use screen coordinates to input and click on objects, but that is very problematic because if anything on the screen changedeven a different monitor can affect ityour test will fail. I have been told

Re: [Wtr-general] Question from a newbie

2006-10-23 Thread Cain, Mark
defeat the purpose of having an ID altogether? I agree that the name attribute is apparently not subject to the same restriction, though. ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: October 23, 2006 10:20 AM To: wtr

Re: [Wtr-general] Question from a newbie

2006-10-25 Thread Cain, Mark
@rubyforge.org Subject: Re: [Wtr-general] Question from a newbie Cain, Mark wrote: Excuse me but aren't we talking about IE here? Not that i was aware of. My understanding is that the topic at hand was whether the HTML generated by a web application was conformant to WC3 standards and whether non

Re: [Wtr-general] WinClicker - too many callbacks are defined

2006-10-27 Thread Cain, Mark
This is a shot in the dark but did you try explicitly setting the WinClicker object w to nil after the popup is dismissed? ... if (hwnd) w = WinClicker.new w.makeWindowActive(hwnd) w.clickWindowsButton_hwnd(hwnd, OK) w = nil end ... OR You could create the WinClicker object when the

Re: [Wtr-general] modal dialogs in IE 7.0

2006-11-08 Thread Cain, Mark
mention above. Thanks, -Dara -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: Thursday, October 26, 2006 10:02 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] modal dialogs in IE 7.0 Dara, I had the same problem, when I

Re: [Wtr-general] Using watir to control JavaScript popups

2006-11-13 Thread Cain, Mark
Which version of Watir are you using? --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Garry West Sent: Monday, November 13, 2006 5:04 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Using watir to control _javascript_ popups I am new

Re: [Wtr-general] Running Watir from FoxPro 9

2006-11-14 Thread Cain, Mark
Try require 'watir' ... @ie = Watir::IE.new Instead of @ie = WIN32OLE.new('InternetExplorer.Application') You could alternatively edit the setup.rb file to be for your tests anh just require it $ie and the logger are both initialized in that file. Also, take a

Re: [Wtr-general] Problems with the watir email list?

2006-11-15 Thread Cain, Mark
I have had some similar problems in the past. As it turned out the server IP the forum comes from was on the Spam Block list for the entire license class (if I said that right) any way, I had to have the cyber-security guy open up the spam filter to allow the specific IP for the forum. Problem

Re: [Wtr-general] Find parent table index from a specific element within

2006-11-15 Thread Cain, Mark
If there is one I have never found it. What I have had to do was do a view source on the page. I then do ctrf, enter 'table' (without the '') into the search field, click the Next button and--starting at the top--start counting. The indexing is one-based so when you get to the desired table

  1   2   >