David / Bret
 
In reply.
 
david's suggestion to use
 
modal.frame('main').button(:text, 'Yes').click
 
was right. Though I had to change the src of the dialog to use <button type="button".  type="submit" dosen't work. error trace:
 
  1) Error:
test802(TC_test802):
NoMethodError: undefined method `all' for nil:NilClass
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1017/./watir.rb:992:in `ole_inner
_elements'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1017/./watir.rb:1041:in `locate_i
nput_element'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1017/./watir.rb:3458:in `locate'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1017/./watir.rb:2235:in `assert_e
xists'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1017/./watir.rb:2378:in `click'
    C:/visual studio projects/VictoriaPolice/AttendanceTests/bug802.rb:45:in `te
st802'
 
1 tests, 0 assertions, 0 failures, 1 errors
 
I added an issue for this on the the Jira.
 
thanks for your help
 
Marco
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Tuesday, 30 May 2006 16:27
To: [email protected]
Subject: Re: [Wtr-general] 1.5 modal dialog. Syntax of supported tags ?

On 5/29/06, Neri, Marco <[EMAIL PROTECTED]> wrote:

Is the issue that the buttons are defined using submit instead of < input type=button value="Close" -

Yes, i think this is the problem.

does this means that the modal dialog support in 1.5 is restricted only to dialogs implemented similar to the example in unit test.

The modal dialog support works with any objects that can be found in a regular web page. The problem you are running into just happens to be on a modal dialog. It may happen, however, that these <button> tags are more popular on modal dialogs, so that is where we are seeing them.

In any case, Watir should support the <button> tag. Would you mind adding a Jira issue for this as a reminder?

Bret 

 

=======================================================

The information contained in this email and any files attached may

be confidential information to the intended recipient and may be

the subject of legal professional privilege or public interest immunity.

 

If you are not the intended recipient, any use, disclosure or copying is

unauthorised.

 

If you have received this document in error please telephone 1300 307 082

 

*******************************************************************

This footnote also confirms that this email message has been swept

for the presence of computer viruses.

*******************************************************************

 

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to