Re: [Wtr-general] Unable to select an item using select_list

2007-07-18 Thread Cain, Mark
I don't think you are supposed to put single quotes around the regular expression. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rvishnubhotla Sent: Wednesday, July 18, 2007 10:29 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-ge

Re: [Wtr-general] Unable to select an item using select_list

2007-07-18 Thread Cain, Mark
You could have done this also: ie.select_list(:name, "productId").select(/Catalyst 6500/i) --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Željko Filipin Sent: Wednesday, July 18, 2007 2:34 AM To: wtr-general@rubyforge.org S

Re: [Wtr-general] How to click a row from table in webpage

2007-07-12 Thread Cain, Mark
(also 1-based). e.g. table[1][3].click (click column 1 row 3) You may need to tweek around with this a bit. You can use the flash method to zero in on you target area. Hope this helps, --Mark ____ From: Cain, Mark Sent: Thursday, July 12, 2007 6:57

Re: [Wtr-general] How to click a row from table in webpage

2007-07-12 Thread Cain, Mark
First off, Tables currently support only two attributes in Watir 'id' and 'index'. Since the Table in your does not use the 'id' attribute you must supply the proper index. To identify what is the proper index for this particular table do a 'View Source' on the web page you want to use. Do a 'ct

Re: [Wtr-general] Handling Popup

2007-06-26 Thread Cain, Mark
Do you have this " require 'watir/contrib/enabled_popup' " in code script? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chong Jiang Sent: Tuesday, June 26, 2007 8:20 AM To: wtr-general@rubyforge.org Subject: [Wtr-gen

Re: [Wtr-general] Select the first item in a list

2007-06-22 Thread Cain, Mark
y select one list_three = [] list_three = $ie.select_list( :name, 'list3').getAllContents cnt = rand(list_three.length) # If there is a placeholder item at the topmost selectlist position bypass it next if "#{list_three}" == ("-- Select One --") $ie.selectBox( :name, 'list3').

Re: [Wtr-general] Can Someone Explain This Pls... I Cant Find TheReason...

2007-06-22 Thread Cain, Mark
Did you try using the 'click_no_wait' method for the link click? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of san Sent: Friday, June 22, 2007 2:26 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Can Someone Explain This Pls

Re: [Wtr-general] how to properly use the snippet function?

2007-06-13 Thread Cain, Mark
The attached file works on my Windows XP/IE7 machine. It will delete all the temporary internet files and the cookies. I don't remember where I got it or who wrote it originally, but I tweaked it to get it to work right for me. Hope this helps, --Mark -Original Message-

Re: [Wtr-general] Handling Popup

2007-06-12 Thread Cain, Mark
role.role.select("my role") Hope this helps, --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of TT Blue Sent: Monday, June 11, 2007 11:00 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Handling Popup Tried th

Re: [Wtr-general] Count checked checkbox

2007-05-30 Thread Mark
an alternative could be: irb> ie.form(:index, 1).checkboxes.find_all{|checkbox| checkbox.checked?} ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Not able to identify a pop up

2007-05-14 Thread Cain, Mark
d_popup(10) if nil == hwnd w.clickWindowsButton_hwnd(hwnd, button) t.join w = nil } End ... # Start the thread before it gets locked by the JSPopup startClicker( $ie, 'OK') # The set spawns a JSPopup $ie.checkBox( :name, "read_instructions")

Re: [Wtr-general] Handling popup message

2007-05-14 Thread Cain, Mark
You misspelled Cancel startClicker( "Calcel", 7 , "" ) --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kui Zhang Sent: Friday, May 11, 2007 4:36 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Handling popup messag

Re: [Wtr-general] JS Alert from a checkbox

2007-04-18 Thread Cain, Mark
$ie.checkBox( :name, "read_instructions").set As usual there is probably a better way of doing this...if you do improve this please pass it on. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Jewett Sent: Tuesday, April 17

Re: [Wtr-general] JS Alert from a checkbox

2007-04-16 Thread Cain, Mark
Does anyone have an answer to this? I can't seem to get the click_no_wait to work for checkboxes. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: Friday, April 13, 2007 10:05 AM To: wtr-general@rubyforge.org Su

[Wtr-general] JS Alert from a checkbox

2007-04-13 Thread Cain, Mark
I have a JS Alert that popups from clicking a checkbox. How can I use the click_no_wait functionality for the 'set' method of the checkbox? Thanks, ____ Mark L. Cain LMIT - E*STARS(r) ~ Lead Test Engineer 1981 Snyder, MSIN: G3-62, Richland, WA 99354 [EMAIL

[Wtr-general] Watir - Logger - Log Files

2007-04-10 Thread mark
e and prints to Log file sleep 5#Pause for five seconds $ie.send_keys('{PRINTSCREEN}')#I use an application that takes screenshots via the PrintScreen key and dumps the screenshot to a selected destination. #I use Wisdom-soft ScreenHunter 4.0 from www.download.com (free). There are others

Re: [Wtr-general] Accessing Nested Tables

2007-04-04 Thread Mark
This is all fine if you don't care about "hard coding" your table indexes or don't expect your page layout to change. Here is how I did it without using hard coded indexes. (Note: use unique data that will get you the table you want. If there are multiple tables nested within an outer table you

Re: [Wtr-general] Calculating attachment uploading time

2007-03-16 Thread Cain, Mark
e(diff) s += frac.to_f File.open('C:\watir_bonus\working\pageSearchLoad_Times.txt', 'a+'){|d| d.puts "Time to load page: " + "#{h} Hours, #{m} Minutes, #{s} Seconds"} Hope this helps, --Mark From: [EMAIL PROTECTED] [

Re: [Wtr-general] I'm a little confused..

2007-03-14 Thread Cain, Mark
Take a look at the unittests that are included in the Watir installation. There is just about anything you might want to do is represented in those tests or can be easily derived from them. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [Wtr-general] http_error_checker on IE7

2007-03-14 Thread Cain, Mark
You might try a tool like Fiddler. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bach Le Sent: Wednesday, March 14, 2007 1:16 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] http_error_checker on IE7 Paul, do you know if it&#

[Wtr-general] Identifying Correct column from multiple header row that spans cells?

2007-03-14 Thread Mark
Hi all, Thanks for any help you can give... this has been bugging me for a while. I have a table that has 2 rows that are used for column headings. However, some cells span more than one cell. This results in the incorrect calculation of the column. Instead of using a "hard coded" index valu

Re: [Wtr-general] Assert in helper class in require'd file

2007-03-08 Thread Cain, Mark
I am pretty sure your class need to inherit from Test::Unit::TestCase (if that is the right way to say it). class MyStuff < Test::Unit::TestCase def verifyAndGo(linkName) assert($ie.link(:text, linkName).exists?) $ie.link(:text, linkName).click end end --Mark -Original Mess

Re: [Wtr-general] How to make sure that script run in linesquencerather than alphabetical sequence when using load

2007-03-08 Thread Cain, Mark
est03_d; load 'rt/rt_r_system_admin_nameserver.rb' print 'G'; end def test04_c; load 'rt/rt_w_system_admin_nameserver.rb' print 'H'; end end --- Hope this helps, --Ma

Re: [Wtr-general] Problems accessing modal_dialog from ruby v. 1.8.5

2007-03-01 Thread Cain, Mark
Do we have a timeline on when this will work in 1.8.5? Is anyone working on this? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers Sent: Thursday, March 01, 2007 11:16 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general

Re: [Wtr-general] Watir + IE dev toolbar

2007-02-27 Thread mark
I'm running the Beta 3 release. It seems it's a known defect; See http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerDevToolbarBugs IE 6 Crashes on Certain DOM Heavy Javascript We have a product which creates grids within the page [inline table editing, etc]. On the page load,

Re: [Wtr-general] Accessing Nested Tables

2007-02-27 Thread Cain, Mark
Try something like: $ie.table(:index, 2)[1][1].flash Index is one-based and derived by counting the topmost table (do a view source >> ctrl + f >> 'mailto:[EMAIL PROTECTED] On Behalf Of Steve Tangsombatvisit Sent: Tuesday, February 27, 2007 11:52 AM To: wtr-general@rubyforge.org Subject: [Wtr-g

Re: [Wtr-general] Watir + IE dev toolbar

2007-02-26 Thread mark
I've had the same happen to me. The fault is with the IE Development Toolbar. Certainly has nothing to do with Watir/Ruby. It's a good tool for writing scripts . . . but bad at keeping an IE window open. I'm in the habit of uninstalling it whenever I run a script. Cheers ---

Re: [Wtr-general] OT: Test unit reporter project dead?

2007-02-20 Thread Cain, Mark
where does one get the gem? it doesn't appear to be on rubyforge. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Sieger Sent: Sunday, February 18, 2007 11:59 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-genera

Re: [Wtr-general] OT: algorithm help?

2007-02-13 Thread Cain, Mark
c += 1 else d += 1 end end #loop printf(" a: %i\n b: %i\n c: %i\n d: %i", a,b,c,d) end getNum Results: a: 283 b: 296 c: 406 d: 15 --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon Sent: Tuesday, F

Re: [Wtr-general] How do I connect to MS SQL 2005 using Ruby?

2007-02-07 Thread Cain, Mark
hearing how others solved similar issues. It is one of the great strengths of this forum! Thanks in advance, --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon Sent: Wednesday, February 07, 2007 1:52 PM To: wtr-general@rubyforge.org

Re: [Wtr-general] ignoring the SELECT option

2007-01-17 Thread Cain, Mark
cTypeID').select("#{lbDocTypeID[cnt]}") --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sarita Sent: Tuesday, January 16, 2007 9:39 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] ignoring the SELECT option In a combobox, f

Re: [Wtr-general] Alert box - hangs

2007-01-11 Thread Cain, Mark
Can you send your code and html so I can see what you're doing? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of usha Sent: Wednesday, January 10, 2007 4:13 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Alert box - hangs I'

Re: [Wtr-general] Alert box - hangs

2007-01-10 Thread Cain, Mark
What version of IE are you using? Because in IE7 Microsoft changed the tile bar name of all popups from "Microsoft Internet Explorer" to "Windows Internet Explorer" this would cause a Hang as you described. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:

Re: [Wtr-general] Alert box - hangs

2007-01-10 Thread Cain, Mark
Can you send your code and html? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of usha Sent: Tuesday, January 09, 2007 4:31 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] Alert box - hangs Hi, I've been trying to click on the Aler

Re: [Wtr-general] how to handle the file download window !

2007-01-09 Thread Cain, Mark
;) # "OK" or whatever the name on the button is w=nil# this is just cleanup end end $ie = IE.new() $ie.goto("C:\\fileupload.html") $ie.fileField(:name, "fileone").click_no_wait fPath = "file://C:\\mytext.txt" startClicker("&

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

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:

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

2007-01-02 Thread Cain, Mark
or whatever the name on the button is w=nil# this is just cleanup end end $ie=Watir::IE.start("c:\test.htm") # This is whatever object that uses the click method. # You MUST use the click_no_wait method. $ie.image(:id,'3').c

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

2007-01-02 Thread Cain, Mark
$ie=Watir::IE.start("c:\test.htm") # This is whatever object that uses the click method. $ie.image(:id,'3').click_no_wait startClicker("OK", 7, "User Input") # 3rd parameter is optional. Hope this helps --Mark __

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

2006-12-15 Thread Mark
I managed to get around the "hang", however, It would be nice to know how to get ahold of this window to do some validating against it. The way I got around the "Hang" was to put '.click_no_wait' on the call to click the help button. this way it clicks the help button (which produces the dialo

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

2006-12-15 Thread Mark
Hi all, I am new to ruby, and have searched these forums for answers, but have not found anything that seems to work or help me. (including links to FAQ's which do not appear to be available anymore) [u]Situation:[/u] I am writing ruby/watir scripts to automate tests against a website/applicat

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

2006-12-14 Thread Cain, Mark
; or whatever the name on the button is w=nil# this is just cleanup end end $ie = IE.new() $ie.goto("C:\\fileupload.html") $ie.fileField(:name, "fileone").click_no_wait fPath = "file://C:\\mytext.txt" startClicker(

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

2006-12-13 Thread Cain, Mark
Can you send the html for that portion? --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Oei Sent: Wednesday, December 13, 2006 1:52 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Issue WTR-108 - file_field.set

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

2006-12-13 Thread Cain, Mark
Please tell us what the problem is? Does it hang? Does is error out? Show us the does you are using. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Oei Sent: Wednesday, December 13, 2006 12:58 PM To: wtr-general

Re: [Wtr-general] pop up box

2006-12-11 Thread Cain, Mark
# "OK" or whatever the name on the button is w=nil# this is just cleanup end end $ie=Watir::IE.start("c:\test.htm") $ie.image(:id,'3').click_no_wait startClicker("OK", 7, "User Input") # 3rd parameter is optional.

Re: [Wtr-general] pop up box

2006-12-11 Thread Cain, Mark
Did you get this solved? --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Makins Sent: Thursday, December 07, 2006 4:24 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] pop up box Hi, I have a pop up box that

Re: [Wtr-general] Excel Or Text File?

2006-12-11 Thread Cain, Mark
that comes with Ruby. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fletch Sent: Friday, December 08, 2006 1:25 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Excel Or Text File? Thanks for all your replies. I will look in to using

Re: [Wtr-general] Editing fields in 'Save As' dialog

2006-12-11 Thread Cain, Mark
This is pretty obscure but try adding an '&' to 'Save': clicker.clickWindowsButton('File Download', '&Save') --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Ciarlillo Sent: S

Re: [Wtr-general] Extreme slowdown moving from 1.4.1 to 1.5.1.1127

2006-12-11 Thread Cain, Mark
Are you running your tests from inside and IDE? I saw the same slowness moving from 1.4.x to 1.5.x when I ran (the same tests) from Komodo 3.5. It was less apparent from Eclipse though... --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [Wtr-general] Can't Control JavaScript PopUp Window....

2006-11-29 Thread Cain, Mark
What version of Watir are you using? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of san Sent: Wednesday, November 29, 2006 5:49 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Can't Control JavaScript PopUp Window Basically W

Re: [Wtr-general] Can't Determine The Error...

2006-11-28 Thread Cain, Mark
put these kinds of errors and stuff in the FAQ; you might want to check it out on the website. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of san Sent: Tuesday, November 28, 2006 3:09 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Can&

Re: [Wtr-general] Is there a way to make file_field.set faster?

2006-11-27 Thread Cain, Mark
rc, "https://alinea.inmar.com/alinea/images/adddocument.gif";) adoc.click_no_wait # call the clicker startClicker( '&Open', 9, $path) --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Željko Filipin Sent: Monda

Re: [Wtr-general] Table has no unique attributes

2006-11-27 Thread Cain, Mark
You could also just use table index. If you do a view source on the page, then do a f. Beginning at the top of the page, put 'mailto:[EMAIL PROTECTED] On Behalf Of Angrez Singh Sent: Thursday, November 23, 2006 9:46 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Table has no unique a

Re: [Wtr-general] [Wtr-General] Problem with set_text and dialog boxes

2006-11-22 Thread Cain, Mark
ps://alinea.inmar.com/alinea/images/adddocument.gif";) sleep 2 adoc.click_no_wait startClicker( '&Open', 9, $path) You may need to tweak this to work in your situation. I tested this and it works. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMA

Re: [Wtr-general] problem in entering values in javascript input box

2006-11-16 Thread Cain, Mark
r the name on the button is w=nil# this is just cleanup end end $ie=Watir::IE.start("c:\test.htm") $ie.image(:id,'3').click_no_wait startClicker("OK", 7, "User Input") Hope this helps, --Mark

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

2006-11-15 Thread Cain, Mark
It is 1-based ie.textField(:index, 1).set("I did it!") --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Sent: Wednesday, November 15, 2006 12:28 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Find parent table in

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 f, enter 'mailto:[EMAIL PROTECTED] On Behalf Of John Lolis Sent: Wednesday, November 15, 2006 6:46 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Find parent table index from a specif

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

2006-11-15 Thread Cain, Mark
solved...for me anyway. ;-) Hope this helps, --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Ark Sent: Wednesday, November 15, 2006 8:33 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Problems with the watir email list? Hi folks. I

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

2006-11-14 Thread Cain, Mark
file. Also, take a look at the unittests for good usage examples. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Markus Sent: Tuesday, November 14, 2006 5:58 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Running Watir from FoxPro 9 Has

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

Re: [Wtr-general] startClicker

2006-11-10 Thread Cain, Mark
otherwise the JS Alert would never get clicked.  If the command prompt window bothers you could change the line in startClicker by adding a ‘w’ after ruby:   c = "start rubyw #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} "   Hope this helps,   --Mark   Fr

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

2006-11-08 Thread Cain, Mark
I am pretty sure that is yes. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lillis, Dara Sent: Wednesday, November 08, 2006 11:42 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] modal dialogs in IE 7.0 [sorry for the long delay, I

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

2006-10-27 Thread Cain, Mark
t when the test is initialized and reuse that object throughout. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Hawthorne Sent: Friday, October 27, 2006 6:07 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] WinClicker - too many

Re: [Wtr-general] Question from a newbie

2006-10-26 Thread Cain, Mark
Point taken. Thanks for the clarification and the freedom (within reason of course) to have discourses like this. I know my understanding benefits from the process. Thanks! --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent

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

2006-10-26 Thread Cain, Mark
to change lines 113 and 144: OLD: clickWindowsButton("Microsoft Internet Explorer" , button ) NEW: clickWindowsButton("Windows Internet Explorer" , button ) Hope this helps, --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lilli

Re: [Wtr-general] Question from a newbie

2006-10-25 Thread Cain, Mark
more than one object with the same identifier,the objects are exposed as a collection that can be referenced only in ordinal position." --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Tuesday, October 24, 200

Re: [Wtr-general] Question from a newbie

2006-10-23 Thread Cain, Mark
W, I agree with you! I wish IE was stricter with the spec. It would make all of our automation activities much easier. I'm just saying... :-) --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Bolton Sent: Monday, October 23, 2006

Re: [Wtr-general] screenshots

2006-10-23 Thread Cain, Mark
Take a look at the screen capture module in the watir/screen_capture.rb. it should be able to do what you are asking... --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phlip Sent: Saturday, October 21, 2006 8:12 AM To: wtr-general@rubyforge.org

Re: [Wtr-general] Question from a newbie

2006-10-23 Thread Cain, Mark
amming--I'll give you that! ;-P --Mark Ask the developers to fix the bug. If you get pushback, tell them (or the project manager) that the page as current constructed interferes with testability. If you get pushback, then use (:index, [some number]) to locate t

Re: [Wtr-general] Question from a newbie

2006-10-18 Thread Cain, Mark
examples on just about everything you would need. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Nowell Sent: Wednesday, October 18, 2006 12:30 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] Question from a newbie Hey, I just

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

2006-10-18 Thread Cain, Mark
tools either…sales people will try and tell you differently but when they ask someone who actually knows something they will concede their tool doesn’t either.   --Mark   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neelakandan Sent: Wednesday, October 18

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 Fee

Re: [Wtr-general] Javascript Alert windows

2006-10-09 Thread Cain, Mark
You could also just put "include Win32" right above the "def enabled_popup(timeout=4)" in /watir/contrib/enabled_popup.rb --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Schmidt Sent: Saturday, October 07, 2006 7:0

Re: [Wtr-general] Javascript Alert windows

2006-10-05 Thread Cain, Mark
you will need to alter you WinClicker.rb file for either method. \ruby\lib\ruby\site_ruby\1.8\watir\WinClicker.rb Lines 113 and 144. IE6 = "Microsoft Internet Explorer" IE7 = "Windows Internet Explorer"   Hope this helps,   --Mark __

Re: [Wtr-general] Javascript Alert windows

2006-10-04 Thread Cain, Mark
popup w = WinClicker.new w.makeWindowActive(hwnd) # "OK" or whatever the name on the button is w.clickWindowsButton_hwnd(hwnd, "OK") end --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Munns Sent: Wednesday, Oct

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: wtr-general

Re: [Wtr-general] how to submit javascript clickButton ?

2006-09-25 Thread Cain, Mark
You might want to include more HTML so people can see what you are working with. It is hard to help you without more information. What object do the users click on to submit the form? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of john Sent

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

2006-09-18 Thread Cain, Mark
bugs (all of which I greatly appreciate), but if something is going to be cut without replacement can you give us a little heads up please, or at leased give a deprecated message? Thanks, Mark L. Cain LMIT - E*STARS(r) ~ Lead Test Engineer 1981 Snyder, MSIN: G3-62, Richland

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

2006-09-18 Thread Cain, Mark
This issue has been added to JIRA: http://jira.openqa.org/browse/WTR-100 I will work on trying to get a unittest for this also. This whole Modal dialog/modal window stuff is very important and one of the main reason I started using Watir. --Mark -Original Message- From: [EMAIL

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

2006-09-15 Thread Cain, Mark
.  When I upgraded to the current branch version (1084) click_no_wait no longer works.  Do you have an idea when nested/sub frames will be supported in the main branch?”   Thanks,   Mark L. Cain LMIT - E*STARS® ~ Lead Test Engineer 1981 Snyder, MSIN: G3-62, Richland,

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

2006-09-13 Thread Cain, Mark
teTime.now         $stop = DateTime.now       diff = $stop - $start   h,m,s,frac = Date.day_fraction_to_time(diff)   s += frac.to_f   File.open('C:\watir_bonus\working\RAPID\pageSearchLoad_Times.txt', 'a+'){|d| d.puts "Time to load page:  " + "#{h} Hours, #{m

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

2006-09-11 Thread Cain, Mark
re_test.rb:62:in `test0_Acquire_Add_Comments'   My usage of the click_no_wait is this: $ie.frame(:index, 8).frame(:index, 1).image(:src,/open_comment_icon.gif/i).click_no_wait   --Mark     -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dav

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: wtr-general

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

2006-09-05 Thread Cain, Mark
ir_bonus/working/PER/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..

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

2006-09-05 Thread Cain, Mark
it was not waiting long enough but can not prove that conclusively. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Tuesday, September 05, 2006 12:30 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Error clicking a

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

2006-09-05 Thread Cain, Mark
the 'fireEvent' method in my script nor do I know what the 'Access is denied' message is all about. --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Tuesday, September 05, 2006 9:32 AM To: wtr-general@ruby

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

2006-09-05 Thread Cain, Mark
)   assert($ie.text_field(:name, "Extent").verify_contains("Extent Text"))   assert($ie.text_field(:name, "SafetySig").verify_contains("Safety Significance Text"))   assert($ie.text_field(:name, "RemedialCA").verify_contains("

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 PROT

Re: [Wtr-general] I am a newb

2006-09-01 Thread Cain, Mark
) for all similar buttons on the page. For instance, there could be 100 rows of data all with the same 'Add', 'Edit', and 'Delete' buttons. Using the button index is the only way of finding a particular button on the page. --Mark -Original Message- Fro

Re: [Wtr-general] I am a newb

2006-09-01 Thread Cain, Mark
: $ie.button(:index, 2).click There are some really good examples of just about everything you would want to do in the unittests directory installed when you install Watir. Hope this helps, --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David

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

2006-08-31 Thread Cain, Mark
windows 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

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

2006-08-31 Thread Cain, Mark
`locate'     C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2337:in `assert_exists'     C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2480:in `click'     C:/watir_bonus/working/PER/tc_PERwResloution_test.rb:279:in `test5_ca'   Has anyone else seen this or similar behavior? __

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

Re: [Wtr-general] Proxy server login

2006-08-03 Thread Cain, Mark
ently logged in user.  Selecting that option should get rid of the proxy box.  However, you should choose the appropriate one for your target user group.   Hope this helps,   --Mark   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simo, Ben Sent: Thursday, Augus

Re: [Wtr-general] german chars in the browser

2006-08-02 Thread Cain, Mark
.  In my experience if a font set does not have a character to represent a font in a given string the system replaces it with the ‘box’ character.   My $0.02 ;-)   --Mark   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers

Re: [Wtr-general] IE7 and Popups

2006-07-25 Thread Cain, Mark
I got it!  Microsoft changed the name of the pop-up title bar from 'Microsoft Internet Explorer' to 'Windows Internet Explorer'.  This should be changed in winClicker.rb or at least put in the FAQ.   --Mark   From: [EMAIL PROTECTED] [mailto:[EMAIL

[Wtr-general] IE7 and Popups

2006-07-25 Thread Cain, Mark
clickJSDialog.rb #{button } #{ waitTime} "     puts "Starting #{c}"     w.winsystem(c )       w=nil  end   Thanks, Mark L. Cain LMIT - E*STARS® ~ Lead Test Engineer 1981 Snyder, MSIN: G3-62, Richland, WA 99354 [EMAIL PROTECTED] 509.376.5458 "640 Kiloby

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread Cain, Mark
You will need to these: require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' I usually add the setup.rb from the unittest directory instead because these requires are already in it. --Mark

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: [E

Re: [Wtr-general] Install problem?

2006-07-18 Thread Cain, Mark
Title: Install problem? I just remembered, one of the last times I installed ruby (either rc 3 or final I can’t remember which) blew away ALL of my path information.  You might check to make sure ruby/bin and ruby/lib are in your path environment variable.   --Mark

  1   2   3   >