Re: [Wtr-general] Javascript Alert windows

2006-10-09 Thread Bret Pettichord
> I submitted this bug: http://jira.openqa.org/browse/WTR-112 > Thank you. I've committed the fix. You can either build your own gem from trunk or else wait for the next development gem (in say the next week) to confirm. > Would you be interested in unit

Re: [Wtr-general] Javascript Alert windows

2006-10-09 Thread Bret Pettichord
I committed this change as recommended. Thanks Matt, Mark and David. http://svn.openqa.org/fisheye/changelog/watir/?cs=1115 Bret Matt Johnson wrote: > Thank you, adding include Win32 worked. > > -- MattJ > > On 10/9/06, *Cain, Mark* <[EMAIL PROTECTED] > > wrote: > >

Re: [Wtr-general] I am having problems with assert -- undefined method `assert'

2006-10-09 Thread Bret Pettichord
Eva wrote: Hi, I used the following assert script from the logger example (test_logger1.rb) begin assert($ie.contains_text("Client") ) $logger.log("Passed. Found test string 'Client' ") $logger.log_results("Employee Tests", "TEST PASSED.") #logs to both the XML file a

Re: [Wtr-general] links in a frame

2006-10-09 Thread Dave Munns
Thanks to other postings, I found a solution using irb which is extremely helpful. 0) irb 1) ie = Watir::IE.start("url of product") 2) ie = Watir::IE.attach( :title, / Product Title/) 3) ie.show_frames 4) ie.frame("frame-of-interest").show_frames 5) ie.frame("frame-of-interest").frame("nested-fram

[Wtr-general] I am having problems with assert -- undefined method `assert'

2006-10-09 Thread Eva
Hi, I used the following assert script from the logger example (test_logger1.rb) begin assert($ie.contains_text("Client") ) $logger.log("Passed. Found test string 'Client' ") $logger.log_results("Employee Tests", "TEST PASSED.") #logs to both the XML file and corelogger

Re: [Wtr-general] Javascript Alert windows

2006-10-09 Thread Matt Johnson
Hi, I understood that this was unsupported ( and undocumented ) code. I appreciate the help getting this to work. I submitted this bug: http://jira.openqa.org/browse/WTR-112 The fix seems simple.Would you be interested in unit tests for this module? I am not confident of my ruby skills at this poin

Re: [Wtr-general] Javascript Alert windows

2006-10-09 Thread Matt Johnson
Thank you, adding include Win32 worked. -- MattJOn 10/9/06, Cain, Mark <[EMAIL PROTECTED]> wrote: 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

[Wtr-general] links in a frame

2006-10-09 Thread Dave Munns
After reviewing the forum and trying various ways to access a list of links in a frame, I now ask here. Given a frame that appears to contain a list of links, how does one click on one of these links? Using irb, I have tested variants on: ie.frame("fraDataZone").link(:text, "ADF").click irb ret

Re: [Wtr-general] OT: odd memory behavior question

2006-10-09 Thread Chris Morris
Bret Pettichord wrote: > You need to run the garbage collector. It is something like this: > > GC.start FWIW, I dunno about Ruby's GC, but with GC in things like Java and C#, I've heard that telling GC to start or run is really treated more as a hint, a prodding, but won't always give the same

[Wtr-general] httpwatch

2006-10-09 Thread Bret Pettichord
Httpwatch is a commercial tool that allows you to get information about the http headers and stream. This has been a frequent request on this list.They have recently published an article describing how to use Httpwatch with Watir: http://www.httpwatch.com/rubywatir/Bret

Re: [Wtr-general] JavasScript Menu .click not working

2006-10-09 Thread Chris McMahon
did not create objects like the onclick method does but i fixed it ^^ my boss is happy and so am i.How did you fix it?   ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Javascript Alert windows

2006-10-09 Thread Bret Pettichord
Matt Johnson wrote: > Hello, > I have been trying to use the second method described above with no > success. I am trying to clear a security dialog that appears after > clicking a "Sign In" button. I can see that the button gets clicked, > then the script blocks. If I kill the script ( by closi

[Wtr-general] Access objects by html tag and index

2006-10-09 Thread Nate
I've written a method to allow idenfitication by tags other than the default :name :id, and also index objects based on a specific tag, not just a single index. The code is at the bottom of this message. For example, if I want to click on a link that has the word Edit in it's html properties

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:07 PM To: wtr-general@rubyfo

[Wtr-general] tesly

2006-10-09 Thread Bret Pettichord
A quick read makes me think this would be worth trying out. Has anyone used it? http://junior.tesly.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] JavasScript Menu .click not working

2006-10-09 Thread Michael Ehrich
Hi guys, thx for the help. I wasnt able to answer at the weekend cuz i can only use this mail at my work. I already solved the problem. It was a very complex JS Popup and for some reason some functions did not create objects like the onclick method does but i fixed it ^^ my boss is happy

Re: [Wtr-general] Javascript Alert windows

2006-10-09 Thread David Schmidt
Matt, The problem is that when the enabled_popup method was removed from watir.rb the definitions for GetWindows() definition wasn't moved with it. Afterwards, the definition for GetWindows was moved in the watir.rb file so that it is no longer found by enabled_popup. If you look in the watir