Re: [Wtr-general] Driving Javascript

2006-09-13 Thread Bret Pettichord
Did you try this? ie.goto("javascript:Events.invokeEvent('2_11_act')") Bret Sun wrote: > I have a piece of Javascript that I need to invoke via Watir. Here is the > Javascript code: > > > > menuStart(TAB_MENU_OFF,'ACCOUNT','javascript:Events.invokeEvent(\'2_11_act\')','ACCOUNT','Acco

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

2006-09-13 Thread Bret Pettichord
Danny R. Faught wrote: > Is anyone else using Watir for performance testing? > Yes. Check ie.down_load_time after clicking a button, or whatever. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir 1.5 and attaching to windows problem

2006-09-13 Thread Bret Pettichord
It seems like you are getting a mix of Watir 1.4 and 1.5. If you used the one-click installer for 1.4, you need to uninstall Watir (or just uninstall Ruby) and then install 1.5. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyfo

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Bret Pettichord
> Just to clear something up, most of the script is ruby, so the changes you > recommended is just a ruby script instead of watir right? I dont know > either, so once you confirm I will install ruby on my linux box. Thanks > again. > Correct ___

Re: [Wtr-general] Watir 1.5 and attaching to windows problem

2006-09-13 Thread Bret Pettichord
I have not seen these errors before. If anyone else sees these also, please report. David, It look like you are running the core_tests.rb. Ruby windows_tests.rb to run the unit tests for IE.attach. Bret David Munns wrote: > > Has anyone discovered a solution to the following? > > > > I built

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

2006-09-13 Thread Bret Pettichord
Sun wrote: > OK thank you again. Can you tell me -- where to find good documentation on > Ruby libraries like WinClicker? I see a lot of basic Ruby language > documentation...but not much on libraries (if that is the right word.) > Actually, if I do "gem list" I see several win32-* gems...I pres

Re: [Wtr-general] Another question about "no such file to load -- watir (LoadError)"

2006-09-13 Thread Bret Pettichord
Charley Baker wrote: > Is this due to RUBYOPT not being set in 184 and 185? Yes ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Access is Denied

2006-09-13 Thread Bret Pettichord
Jeroen, Thank you for this information. I have opened up a Jira Ticket for implementing this improvement to our Frame support. http://jira.openqa.org/browse/WTR-96 Bret Jeroen van Menen wrote: > Hi, > > Just wanted to let you know that this "access denied" problem can be fixed in > code. You ne

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Bret Pettichord
Ryan wrote: > Thank you both for your replies. I would love some help to get this going on > linux. Can you please contact me at [EMAIL PROTECTED] with the appropriate > information. Thank you sooo much! > Does this mean that you are not reading the list/forum and that therefore we should

Re: [Wtr-general] Another question about "no such file to load -- watir (LoadError)"

2006-09-13 Thread Bret Pettichord
Allen Zhou wrote: > With Ruby 1.8.4 or 1.8.5, I must wrote as below > > require 'rubygems' > require_gem 'watir' > I realize Allen is using Watir 1.5, but this will also be a problem for 1.4 users. I'm wondering if we should update the users-guide and upload it to wtr.rubyforge.org? Bret

Re: [Wtr-general] exception when contains_text called for empty ie

2006-09-13 Thread Bret Pettichord
Zeljko Filipin wrote: > I have just installed watir 1.5.1.1081 and got an error message when I > started my script. The shortest way I could reproduce it is this: > > C:\Documents and Settings\zfilipin\Desktop>irb > irb(main):001:0> require 'watir' > => true > irb(main):002:0> ie = Watir::IE.new >

Re: [Wtr-general] Another question about "no such file to load -- watir (LoadError)"

2006-09-12 Thread Bret Pettichord
With Ruby 1.8.4 or 1.8.5, you must first do require 'rubygems' before you do require 'watir' With 1.8.2, this was implicit. Bret Charley Baker wrote: > I'm not quite sure what you're doing. You've installed a gem, 1065 > according to your email. Which file is ruby complaining about? And

Re: [Wtr-general] export test results

2006-09-12 Thread Bret Pettichord
Charley Baker wrote: > Sure use Test Unit Report: http://rubyforge.org/projects/test-report/ > Read the readme for more info. I should add this to the FAQ. Someone certainly should. I often get emails from people asking how they can help. Any one has the ability to update the FAQ and it would be a

Re: [Wtr-general] Suite hanging sporadically

2006-09-12 Thread Bret Pettichord
I have one more idea. Is it possible that there is a dialog blocking the script? In other words, a sporadically appearing security dialog or something of the sort. That might cause this problem. Please keep us posted. Bret Bret Pettichord wrote: > Lisa Crispin wrote: > >> Hi,

Re: [Wtr-general] Access is Denied

2006-09-12 Thread Bret Pettichord
I've opened up a defect report for this. We will hope to have a solution shortly. Thanks for the report. http://jira.openqa.org/browse/WTR-94 Bret Jim Hollcraft wrote: > Of all the solutions in the FAQ, the only one that works for me is > > @ie.logger.level = Logger::ERROR > > and that solution

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-09-12 Thread Bret Pettichord
[EMAIL PROTECTED] wrote: > I was using Watir for soem time now (1.4.1), but to test fully my application > i > needed the modal access stuff, so i got the last SVN head, and lauch my test > but i encouter the same error than describe in : > > http://www.mail-archive.com/wtr-general@rubyforge.org/m

Re: [Wtr-general] right click???

2006-09-11 Thread Bret Pettichord
The problem in this case is exactly what it says. A DIV element in the > DOM doesn't *have* a fireEvent OLE call. (I just brought up IRB, > attached to an IE window open to unittests/html/div.html, assigned the > first DIV element to a variable and then had it show me all the valid > OLE method

Re: [Wtr-general] right click???

2006-09-11 Thread Bret Pettichord
I believe that this is bug introduced by the recent performance enhancement to Watir that needs to be backed out until it can be made more reliable. Unrelated to the error message, there is on "rightclick" javascript event. I read my JavaScript book on the topic and it said that the event is "

Re: [Wtr-general] Style Question

2006-09-10 Thread Bret Pettichord
Jim Hollcraft wrote: > I suppose being able to switch the version of Watir used isn't that commonly > needed, but what about the general idea of common require files. I don't see > this used in ruby much. Is it a good/bad idea? > I do it all the time, for both these reasons. _

Re: [Wtr-general] handle exhaustion

2006-09-09 Thread Bret Pettichord
This code works with 1.5. Phlip wrote: > Bret Pettichord wrote: > > >> Use this instead. >> def IE.new_process >>iep = IEProcess.start >>ie = IE.bind iep.window >> > > That givin': > > 1) Error: > test_fetchTestResult

Re: [Wtr-general] handle exhaustion

2006-09-09 Thread Bret Pettichord
Phlip wrote: > Bret Pettichord wrote: > > >> (I plan to commit this to Watir, but since you asked, i'm sending it >> direct. Using this you do ie = IE.new_process to create an IE and >> ie.kill to close it. This creates a separate IE process for each Window

Re: [Wtr-general] handle exhaustion

2006-09-09 Thread Bret Pettichord
Phlip wrote: > Watirists: > > After running a test with Watir over and over again, my WinXP box > shows signs of "handle exhaustion". Simple windows and such don't > open. This shows that when Watir creates its secret Internet Explorer > object, and destroys it (wie.close(), right?) something leaks

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

2006-09-07 Thread Bret Pettichord
David Schmidt wrote: > Sun, > > If the window only has the title "Internet Explorer" then it's not > likely that it's a modal dialog. This sounds more like an IE warning > dialog, which is quite different. > > I cannot duplicate that warning box on my copy of IE, probably because I > previously

Re: [Wtr-general] Cannot access input element

2006-09-07 Thread Bret Pettichord
Karim Noorani wrote: > Also if this in fact the problem is there a "show" that would display if > this is in fact what is my problem? > The best thing to use is ie.html. This will show you an html representation of the current DOM -- not the same as view source.

Re: [Wtr-general] Count number of tables in HTML page

2006-09-06 Thread Bret Pettichord
aidy rutter wrote: > I have a number of tables with an ID="SearchResults". > > Is it possible to count the number of tables with this ID? ie.tables.select{|t| t.id == 'SearchResults'}.length Our collections include the Ruby "Enumerable" module. That's what allows you to do this and lots of ot

Re: [Wtr-general] Cannot access input element

2006-09-05 Thread Bret Pettichord
[EMAIL PROTECTED] wrote: > Any Suggestions? Yes, send more info. You said that view source doesn't show the div. What does it show? Can you send it? You said ie.button(:value, "OK").click didn't work. What did it do? Did you get an error? Did it click a different button? Bret _

Re: [Wtr-general] Suite hanging sporadically

2006-09-05 Thread Bret Pettichord
Lisa Crispin wrote: > Hi, > We have a suite of 33 tests with 1474 assertions that takes over 100 > minutes to run. I run it every night with --runner=t and -b options. > Sometimes it runs just fine, other times it just seems to hang up part > way through, it doesn't get an error, it is just si

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

2006-09-05 Thread Bret Pettichord
Remove the "*" The asterisks somehow got inserted into my email as consequence of me quoting your html-email. Bret Cain, Mark wrote: > I ran this: > > cw2.button( "Close Window" ).click_no_wait > > $ie.wait* > > And got this error: > 1) Error: > test5_ca(TC_PER_Significant)

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

2006-09-05 Thread Bret Pettichord
Cain, Mark wrote: > It appears to be a synchronization problem as you described, how do I > fix it? I am using the click_no_wait method to exit the non-modal > window (regular click error ironically enough in wait) and that is where > the synch error occurs. > * cw2.button( ** "Close Win

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

2006-09-05 Thread Bret Pettichord
07:in `set' > C:/watir_bonus/working/PER/tc_PERwResloution_test.rb:277:in > `test5_ca' > > This is odd since I am not using the 'fireEvent' method in my script nor > do I know what the 'Access is denied' message is all about. > > --Mark > > > -

Re: [Wtr-general] no such file to load -- watir (LoadError)

2006-09-05 Thread Bret Pettichord
Sounds like Watir isn't installed. I suggest you uninstall and reinstall. If that doesn't work, try installing the gem instead. (gem install watir). CJ wrote: > I cannot get WatiR to load/run. Error= no such file to load -- watir > (LoadError) > > Info: > > Windows XP SP2, IE 7.0 > > I Instal

Re: [Wtr-general] OT: more on testing email

2006-09-05 Thread Bret Pettichord
> > But saying that, I do agree it would be a great thing to do > > Paul > > - Original Message - > From: Bret Pettichord <[EMAIL PROTECTED]> > Date: Wednesday, August 30, 2006 10:46 am > Subject: Re: [Wtr-general] OT: more on testing email > > >

Re: [Wtr-general] Cannot access input element

2006-09-05 Thread Bret Pettichord
Sounds like frames to me. True? [EMAIL PROTECTED] wrote: > Hey all, > > I have a form which I click on to perform an action. > > I get a result back from the action and a screen displays with an OK option. > > Inspecting the code through view source does not show me any input tags, > yet when I do

Re: [Wtr-general] Problem reading tables

2006-09-05 Thread Bret Pettichord
I'm not surprised to hear that this doesn't work. It's not a common situation. If you'd like to see a fix, please log this in Jira. Bret RadhaKrishna Sunkari wrote: > I get the following error, if I've an empty table(with > no or tags in it). In this case my table #2 > is empty. > I'm using wa

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

2006-09-05 Thread Bret Pettichord
Mark, I see that you have some hard-coded sleep statements. This a bad sign. Can you replace these with calls to $ie.wait? This will probably fix the problem you reported as well. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rub

[Wtr-general] A strict testing-centric view

2006-09-02 Thread Bret Pettichord
Lonny Eachus wrote: > And please keep in mind that people use Watir for things other than > testing !! Without trying to be insulting, I must be honest and state > that I find the strict testing-centric view to be more than a little > myopic. This mailing list is explicitly chartered as having a

[Wtr-general] Global Variables

2006-09-01 Thread Bret Pettichord
Paul Carvalho wrote: > I hardly think that bringing up the difference between global and > instance variables to someone who doesn't know how to start IRB is a > good idea right now. I think you should follow your own advice and > keep things simple right now. > > I don't consider myself a newb

Re: [Wtr-general] cannot set a text_field after form submit

2006-09-01 Thread Bret Pettichord
Gabe wrote: > I have some watir tests for my form validation code. Basically, I try > entering some invalid text, submitting, making sure I got an error, etc. > > The problem is that I cannot set a text field after the first form submit. > When I try, I get this error: > > > test_address_validati

Re: [Wtr-general] OT: more on testing email

2006-08-30 Thread Bret Pettichord
Any one want to port this to Ruby? It would be awesome! Chris McMahon wrote: > This link just got posted on the agile-testing list, it looks > effective: http://quintanasoft.com/dumbster/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://ru

Re: [Wtr-general] Script works 1.4.1 but not 1.5.1.1079

2006-08-30 Thread Bret Pettichord
Seth Goldstein wrote: > I have a script that works just fine under 1.4.1 but I wanted to upgrade to > the latest because I wanted to get FireWatir a shot and the script fails now. > Here is the short version of the script: > > @ie.goto('http://atlas.asp.net/atlastoolkit/HoverMenu/HoverMenu.aspx'

Re: [Wtr-general] Unable to locate cells by text

2006-08-29 Thread Bret Pettichord
Mike Townley wrote: > > Hello. I am using Ruby 1.8.2 and Watir 1.4.1 installed from the one > click installer. I cannot seem to access cells by text. IE’s dev tool > bar shows them clearly in the DOM but ie.cell(:text, “text in the > cell”).exists? returns false ie.show_all_objects doesn’t show

Re: [Wtr-general] Newbie problem with submitting a login

2006-08-29 Thread Bret Pettichord
Use watir 1.5: ie.cell(:text, 'Login').click Reinier Mostert wrote: > Hi all, > > First off, I want to apologize for the uge chunk of HTML, but I can't > seem to figure out how to submit this correctly. > > I've tried a submit on the form, but I think the Javascript needs to > run to enable

Re: [Wtr-general] get the meta tag out of a page

2006-08-29 Thread Bret Pettichord
Alien Ruby wrote: > But, my other question is why '...outerHTML.getContents' or > '...outerHTML.getText' or some similar functions cant just spit out the > value/content? > In watir 1.5, i believe ie.html includes the meta tags. There is a bug in 1.4 where ie.html only includes the body and n

Re: [Wtr-general] oo design question for desigining domain specific library using watir

2006-08-25 Thread Bret Pettichord
Manish Sapariya wrote: > I am trying to automate web management console of our appliance. > I am trying to write a class library using watir which will kind of provide > all functionality which a user can perform using this GUI. > Going step forward I am wrapping this library in unit test to build

Re: [Wtr-general] 9th place for watir

2006-08-25 Thread Bret Pettichord
Zeljko Filipin wrote: > Did you know that watir is 9th at rubyforge top downloads list? Above > typo, rake... :) I expect Watir to move up significantly after we release 1.5. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.

[Wtr-general] Failing a test without aborting it

2006-08-23 Thread Bret Pettichord
A frequently asked question has been how do you cause a test verification to fail the test without immediately aborting it as well. Frequent replies have been to wrap assertions with rescue blocks, which raises all kinds of other problems. Here is a much better solution. def verify boolean, m

Re: [Wtr-general] Setting Textbox throws unknown

2006-08-21 Thread Bret Pettichord
James wrote: > I have no trouble reproducing this. > Also...Doing so, crashes IE > I believe you. But we don't yet have a good description of the problem. Before we can start to fix the problem we need to be able to have other people reproduce the problem. You've said that any use of Regexps

Re: [Wtr-general] Subject:,Re: launch broswer as another user ?

2006-08-21 Thread Bret Pettichord
Lonny Eachus wrote: > Wow. Seems like an awful lot of work. Why not just use shell to start > IE as any user you want using the Windows "RunAs" command, then attach > to the window? > Two short lines of code. In my case i needed to start up several browsers concurrently and in this scenario, the

Re: [Wtr-general] launch broswer as another user ?

2006-08-21 Thread Bret Pettichord
Marco wrote: > Hi > > has anyone had to come up with a way of launching an instance of ie from > within a script but run as another user context? > > I tried using cpau and I can launch a browser using a ruby script. I then run > that script using > > cpau -u -p -ex "cmd /K \"launchbrowser.rb

Re: [Wtr-general] Setting Textbox throws unknown method 'scrollIntoView' error

2006-08-21 Thread Bret Pettichord
> > WIN32OLERuntimeError: Unknown property or method `scrollIntoView' > HRESULT error code:0x80010004 > The caller is dispatching an asynchronous call and cannot make an > outgoing call on behalf of this call. > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:3829:in > `m

Re: [Wtr-general] Solution for accessing showModal Dialogs yet?

2006-08-21 Thread Bret Pettichord
James wrote: > I should note, this script will work just fine, if it happens > that two dialogs are not attempted to be opened simultaneously. > Once this happens, the process hangs. > If the opening and closing of modal dialogs occurs sequentially, no problem. > but simultaneously won't work for m

Re: [Wtr-general] problem in opening a file

2006-08-21 Thread Bret Pettichord
Adam Reed wrote: > You know, I had an issue with Excel opening files as well. I was able > to set path to a variable and save the file wherever I wanted, but was > not able to open this file again using the same variable, or the same > path spelled-out. I would get an exception saying unable t

Re: [Wtr-general] problem in opening a file

2006-08-21 Thread Bret Pettichord
Zeljko Filipin wrote: > Or you could put path to a variable > > path = "C:\demo\" > workbook = excel.Workbooks.Open ("#{path}mation.xls") > This won't work. Backslashes inside double-quotes have special meaning. Either use forward slashes or single-quotes (or both) to avoid this problem. Bret ___

Re: [Wtr-general] Divs

2006-08-21 Thread Bret Pettichord
className > 1 > 2 > ... > 117 > 118 > => nil > > I can see in the source that divs have ids: > > ... > > > ... > > On 8/8/06, *Bret Pett

Re: [Wtr-general] contains_text with regular expression

2006-08-20 Thread Bret Pettichord
sikander wrote: > > assert($ie.contains_text(/Search/).exists?) > Dave's advice is correct. My suggestion is to avoid using contain_text entirely. I find that it leads to confusion and intend to deprecate it. assert($ie.text =~ /Search/) or assert($ie.text.match /Search/) Bret ___

Re: [Wtr-general] Some more thoughts about frameworks

2006-08-18 Thread Bret Pettichord
Kreutzer, Christian wrote: > goto LoginPage do > username.set user > password.set pwd > login.click > on PleaseChangeYourPassword do > old_password.set pwd > new_password.set new_pwd > ok.click > end > end > > Is it possible to

Re: [Wtr-general] invoking tests in right order

2006-08-18 Thread Bret Pettichord
On 8/18/06, Paul Carvalho <[EMAIL PROTECTED]> wrote: If you are using Watir 1.5+, then you have another option - you can specify the order you want.  See this follow-up message in the archive: http://www.mail-archive.com/wtr-general@rubyforge.org/msg03680.html Note that is not dependent on Watit 1.

Re: [Wtr-general] Solution for accessing showModal Dialogs yet?

2006-08-16 Thread Bret Pettichord
James wrote: > I found the ie.modal_dialog function. > And it works, but I have found problems. > > I am working on running multiple threads, each driving their own IE. > > When a modal dialog is opened in one IE instance > an attempt to open the dialog in another instance, hangs my script =[ > >

Re: [Wtr-general] Regex string comparison

2006-08-15 Thread Bret Pettichord
Paul Carvalho wrote: >if t_ie.span(:id, /PageHeadingLabel/).text.include?( /Create|Update/ ) > the "include?" method is for strings, not regular expressions. Try: if t_ie.span(:id, /PageHeadingLabel/).text.match( /Create|Update/ ) or if t_ie.span(:id, /PageHeadingLabel/).text =~ ( /Create|Up

[Wtr-general] win32ole incompatability with ruby 1.8.4

2006-08-15 Thread Bret Pettichord
Thanks for the report. I just entered this in Jira. http://jira.openqa.org/browse/WTR-86On 8/14/06, Xavier Noria <[EMAIL PROTECTED]> wrote:I forgot to mention the win32ole.so under watir/win32ole didn't loadand so I couldn't run the tests out of the box. I renamed it to forcethe load of the one i

Re: [Wtr-general] Search through WATIR mailing archive

2006-08-14 Thread Bret Pettichord
Dave Hoover wrote: > On 8/13/06, jadzien caruthas <[EMAIL PROTECTED]> wrote: > >> Hi all, am looking for a way to search through the mail archive of this news >> group so i wont be asking a question that has already been asked. >> > > Try the following in Google: > site:rubyforge.org "[Wt

Re: [Wtr-general] ie.minimize broken in 1.5

2006-08-12 Thread Bret Pettichord
Manish Sapariya wrote: > Hi, > Following code generates Exception. > == > $ie.minimize > $ie.goto("https://rcdut11.gs-lab.com/analyst";) > == > 1) Error: > test_securityAlertYes(TC_SecurityAlert_Test): > WIN32OLERuntimeError: document > OLE error co

Re: [Wtr-general] Watir utf-8 support ( japanese support )

2006-08-12 Thread Bret Pettichord
Bret Pettichord wrote: > visweswara wrote: > >> how can we make watir support utf-8 characters?, I would like to write >> japanese characters in textboxes of webpages using watir. >> >> I am using watir 1.4.1 and ruby 1.8.4.20(stable) build . >> I t

Re: [Wtr-general] Watir utf-8 support ( japanese support )

2006-08-11 Thread Bret Pettichord
visweswara wrote: > how can we make watir support utf-8 characters?, I would like to write > japanese characters in textboxes of webpages using watir. > > I am using watir 1.4.1 and ruby 1.8.4.20(stable) build . > I tried using > > WIN32OLE.codepage = WIN32OLE::CP_UTF8 > > at the top of scipt

Re: [Wtr-general] ie.back

2006-08-11 Thread Bret Pettichord
ie.back is tested in navigate_test.rb, which works for me in trunk. Aidy, does this test work for you? Bret Charley Baker wrote: > Hey Aidy, > >The back method does a straight call to ie's GoBack method, and > according to the comments throws that exception only if for some > reason it can

Re: [Wtr-general] Digest headers

2006-08-11 Thread Bret Pettichord
Charley Baker wrote: > Just as a general reminder to the list. If you're getting the digest > version, be careful about sending back the subject header, digest > headers are useless in categorizing and threading the emails. The > original subject header you're responding to is in the digest, ide

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

2006-08-10 Thread Bret Pettichord
Mark is correct. In the case that he describes, you will need to use 1.5 and do ie.modal_dialog() to attach to it. Bret Cain, Mark wrote: > 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 t

Re: [Wtr-general] Invoking Big Number Of Tests

2006-08-08 Thread Bret Pettichord
use 1.5: at_exit { close_browser() } or at_exit { IE.close_all } dzen wrote: > i have mass of ruby tests placed in some dirs. i have and a main ruby test > from where i requre all of the other tests. but when i start the main test, > after it finish i have a huge quantity of browsers opene

Re: [Wtr-general] Divs

2006-08-08 Thread Bret Pettichord
ie.divs.show using 1.5, you can use name, id, text, class pretty much anything. Max Russell wrote: > > A few more questions regarding Ajax drag and rop- > > > Is there a command to show all divs in a particular page? What can > they be accessed through, if not name? (ID)? > > >

Re: [Wtr-general] Asserting that a particular option is selected in a drop down

2006-08-07 Thread Bret Pettichord
Two things. 1. We are now tracking bugs and feature requests in jira at openqa (http://jira.openqa.org), not at Rubyforge. Please put all requests and bug reports there. (We are trying to close down the old ones at Rubyforge to avoid confusion.) 2. If you have a solution, like Lonny, please at

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-07 Thread Bret Pettichord
Bach Le wrote: > I was running the latest stable release of Watir 1.4 but had the window > attach error which was fixed with version 1.5 development build but > after I installed 1.5, I can no longer specify a specific element within > a form such as: > > ie.form(:id, "form1").button(:src, "http

Re: [Wtr-general] AWESOME Ruby Hacks

2006-08-04 Thread Bret Pettichord
> is it possible to syntax highlight in the IRB cmd > shell through IRBC?. Can't see anything in pickaxe. > > Aidy > Not to my knowledge. I suspect that we'll see this first in one of the Ruby IDE's like Arachno or, probably TextMate (which only works on a Mac). Bret _

Re: [Wtr-general] simple solution for basic authentication

2006-08-04 Thread Bret Pettichord
Danny R. Faught wrote: >>> Maybe doing the GUI automation isn't such a bad solution. But let's >>> see if IE gives us this password setting mechanism before we give up. >>> >>> >> How would we do this? I feel like i've already done this, but i'm not >> quite sure if you have something speci

Re: [Wtr-general] simple solution for basic authentication

2006-08-04 Thread Bret Pettichord
Chris McMahon wrote: >> Given the conclusion about how IE's navigate method is flawed means that >> the authentication in Win32::IE::Mechanize is also broken for pages that >> contain elements that are protected by authentication. >> > > This is not true. Mechanize authenticates fine-- Mech i

Re: [Wtr-general] simple solution for basic authentication

2006-08-03 Thread Bret Pettichord
Thanks to Danny and Chris for the research on this topic. Danny R. Faught wrote: > Maybe doing the GUI automation isn't such a bad solution. But let's > see if IE gives us this password setting mechanism before we give up. > How would we do this? I feel like i've already done this, but i'm not

Re: [Wtr-general] Handling of the Mouse Over using watir

2006-08-03 Thread Bret Pettichord
Try something like this: ie.cell(:text, "Action").fire_event("onmouseover") Then figure out how to access the html for the new menu, etc. Bret Chintakrindi Meghanath wrote: > In my application the user needs to do mouseover to do some functionality > > For eg: In the main page one "Action" bu

Re: [Wtr-general] simple solution for basic authentication

2006-08-03 Thread Bret Pettichord
Did we get any closure on this issue? Danny? Has any one else confirmed Chris's results?BretOn 7/31/06, Chris McMahon < [EMAIL PROTECTED]> wrote:> This is working for a site that's a huge mess of nested frames plus a > swarm of small js, image, and css files, etc.  I noticed that you> hardcoded the

Re: [Wtr-general] How to use itinWatir?

2006-08-03 Thread Bret Pettichord
Sounds like we have a bug in show_images. This is yet one more reason for deprecating show_images and encouraging use of images.show instead (which doesn't have this bug).Bret On 8/2/06, Chris McMahon <[EMAIL PROTECTED] > wrote:>> Just tried it.  Worked.  Thanks, Chris.>> Andrew Yay!  There is a bi

Re: [Wtr-general] porting Watir to Selenium

2006-08-02 Thread Bret Pettichord
Selenium blocks the dialogs so they never show up. This works, but is disconcerting for some since it breaks from the "tests your app just like a real user" model.Bret On 8/2/06, Manish Sapariya <[EMAIL PROTECTED]> wrote: I have not used selenium, but was wondering how is the_javascript_ dialog sup

Re: [Wtr-general] Attaching to windows problem

2006-08-02 Thread Bret Pettichord
Bill, Marco -- Thanks for the updates. Very helpful. Attebery, Bill wrote: > This is where I had issues too -- I actually changed the line to > window.path != /Interent Explorer/ and had luck, although after > reading closer I realized that I had misinterpreted the logic, so that > wasn't real

Re: [Wtr-general] simple solution for basic authentication

2006-08-01 Thread Bret Pettichord
On 7/31/06, Danny R. Faught <[EMAIL PROTECTED]> wrote: To productize it, I'd recommending adding a credentials method likeWin32::IE::Mechanize uses.I don't understand the $realm argument in this API. Can you explain? Could we drop it?Bret ___ Wtr-general

Re: [Wtr-general] 40 K limit to attachments

2006-08-01 Thread Bret Pettichord
On 7/31/06, Zeljko Filipin <[EMAIL PROTECTED]> wrote: I would not even look at 40K+ html. All I really need to provide some help is a little snippet of relevant html.I see your point, although sometimes people send us the wrong snippet. Esp. when it comes to  _javascript_. (They often send the func

Re: [Wtr-general] RPC Server unavailable

2006-07-31 Thread Bret Pettichord
A collegue reports that he directly kills the iexplore process as a way of closing IE, and avoiding the RPC error.On 7/31/06, Danny R. Faught < [EMAIL PROTECTED]> wrote:w> 1. Add time delays between the ie.close and ie.new or ie.start. Thiswill give a chance for the ie.close to really close.> 2.

Re: [Wtr-general] Watir 1.5

2006-07-31 Thread Bret Pettichord
The problem is that you need to uninstall Watir 1.4.1. Since you didn't use the gem system to install it, it doesn't know how to uninstall it. Instead use the uninstall option on your windows menu.Bret On 7/31/06, Adam Reed <[EMAIL PROTECTED]> wrote: In this case, please uninstall and reinstal

Re: [Wtr-general] 40 K limit to attachments

2006-07-31 Thread Bret Pettichord
On 7/31/06, Zeljko Filipin <[EMAIL PROTECTED]> wrote: I would not even look at 40K+ html. All I really need to provide some help is a little snippet of relevant html.I see your point, although sometimes people send us the wrong snippet. Esp. when it comes to  _javascript_. (They often send the func

Re: [Wtr-general] simple solution for basic authentication

2006-07-31 Thread Bret Pettichord
On 7/31/06, Danny R. Faught <[EMAIL PROTECTED]> wrote: To productize it, I'd recommending adding a credentials method likeWin32::IE::Mechanize uses.I don't understand the $realm argument in this API. Can you explain? Could we drop it?Bret ___ Wtr-general

Re: [Wtr-general] simple solution for basic authentication

2006-07-31 Thread Bret Pettichord
Chris,Could you or someone else verify whether Danny's suggestion avoids the problems you mention?If it works, i would very much like to add this to Watir.Bret On 7/31/06, Chris McMahon <[EMAIL PROTECTED]> wrote: > This is working for a site that's a huge mess of nested frames plus a> swarm of smal

[Wtr-general] 40 K limit to attachments

2006-07-28 Thread Bret Pettichord
On 7/28/06, mi <[EMAIL PROTECTED]> wrote:> I tried sending my html but it was bigger then 40K so here is the link i get when i do a ie.show_links I suggest either 1. We push up the limit on attachment sizes (100K? Larger?); or2. Encourage people to put large attachments on a wiki page (to be de

Re: [Wtr-general] Popup menus

2006-07-28 Thread Bret Pettichord
You don't need winclicker or autoit. Just use plain watir.    ie = Watir::IE.start('http://msdn.microsoft.com/workshop/samples/author/dhtml/popup/showme4.html' )        ie.document.body.fireevent('oncontextmenu')    ie.span(:text, 'MSDN Web Workshop').clickIt's all a matter of knowing the events an

Re: [Wtr-general] UI Mapping Revisited.

2006-07-28 Thread Bret Pettichord
On 7/4/06, Adrian Rutter <[EMAIL PROTECTED]> wrote: But how would you organise your navigaton andaction methods?for example  def goto_country_list end  def enter_country(country) ... endWould you create new classes? At the moment I have a module for each window with methods contained t

[Wtr-general] Project Map

2006-07-28 Thread Bret Pettichord
I just posted this to my blog. I'd been getting several emails from people who were wondering whether the project had been abandoned.http://www.io.com/~wazmo/blog/archives/2006_07.html#000240 Watir 1.5 is Under Active DevelopmentMany observers have wondered whether Watir is still beingdeveloped. If

Re: [Wtr-general] app map and switch statement

2006-07-28 Thread Bret Pettichord
What errors are you getting?I don't think this is your problem, but you might want to use this to simplify your code:    line.chomp.split(',').each_with_index{|x,i| BretOn 7/27/06, aidy rutter <[EMAIL PROTECTED]> wrote: Hi,   I am using Bret's AppMap concept    def goto_territory_list   ObjectMap.n

Re: [Wtr-general] Keyword Framework & UI

2006-07-28 Thread Bret Pettichord
On 7/28/06, Adrian Lewis <[EMAIL PROTECTED]> wrote: I spoke to Bruce Posey about a week ago, and he was happy with meconverting it to Ruby. However, I think I have much better ideas to improvethe CSDDT. The CSDDT was half-there. Bruce would probably agree. Have you compared the Posey data driven fr

Re: [Wtr-general] need a frame-recursive wait

2006-07-28 Thread Bret Pettichord
On 7/28/06, Xavier Noria <[EMAIL PROTECTED]> wrote: I'm gonna patch the method tomorrow to write some stack-basedrecursion. But before I do that I'd like to ask whether someone elsealready fixed this, or else if there is any technical reason thatprevents that method from being recursive-like. Your

Re: [Wtr-general] Keyword Framework & UI

2006-07-28 Thread Bret Pettichord
On 7/28/06, Adrian Lewis <[EMAIL PROTECTED]> wrote: The CSDDT is open-source, I made amendmentts to it under the name of AdrianRutter. It is writen in BASIC. I am going to convert that code to Ruby.Thanks for the heads up that you are using two different names on this list. I thought you were two d

Re: [Wtr-general] Watir, file_field, dojo and VMware

2006-07-28 Thread Bret Pettichord
John,Thanks for the update. I agree that vmware (and virtual server, which is what my company now uses) are great tools for testing.BretOn 7/27/06, John Castellucci <[EMAIL PROTECTED]> wrote: Bret asks:>What is a "ruby attach dialog"?I was referring to the DOS/ruby.exe window that opens and scroll

Re: [Wtr-general] Verifying instance of text in second browser?

2006-07-28 Thread Bret Pettichord
You don't actually need to use multiple threads for your scenario. But you do need manage separate Watir::IE objects, which means you need to modify your login method. If you show it, we can show you how to modify it make it work for this scenario. BretOn 7/26/06, Max Russell <[EMAIL PROTECTED]> wr

Re: [Wtr-general] Watir, file_field, dojo and VMware

2006-07-26 Thread Bret Pettichord
What is a "ruby attach dialog"?I'd be surprised if vmWare itself is the source of your problem. I'm pretty sure we have people here who have used it with Watir successfully. True?Bret On 6/26/06, John Castellucci <[EMAIL PROTECTED]> wrote: Howdy all – I have some Watir tests that i

Re: [Wtr-general] Just wanted to invoke click event where the button have parameters in it

2006-07-26 Thread Bret Pettichord
On 7/19/06, Zeljko Filipin <[EMAIL PROTECTED]> wrote: HTML that you provided is not valid. Three tags have the same id. Ids should be unique.This is true. However, i think there is a workaround for this.Using 1.5.ie.button(:html, / 'delete', 'KH')/).clickBret  On 7/19/06, VIKASH KUMAR < [EMAIL PROT

Re: [Wtr-general] Lists question

2006-07-24 Thread Bret Pettichord
On 7/21/06, Attebery, Bill <[EMAIL PROTECTED]> wrote: On 7/11/06, Bret Pettichord wrote:     This bothers me a lot. I need to add some diagnostics to IE.attach in 1.5 trunk and then have you try it again and send the diagnostics report. Don't let me    forget

<    1   2   3   4   5   6   7   8   9   10   >