click_no_wait not working.
--------------------------
Key: WTR-489
URL: http://jira.openqa.org/browse/WTR-489
Project: Watir
Issue Type: Bug
Components: Modal Web Dialog
Affects Versions: 1.9.1
Environment: Ruby 1.8.6-26 Watir-1.8.0
Reporter: Neha
Priority: Major
There are multiple nested modal dialogs in the application. When a try to open
the third modal dialog in continuation click_no_wait do works as expected and
using click /click! hangs the script execution.Not able to understand that the
same click_no_wait works for the opening first two consecutive modal dialog.
Code lines where execution fails:-
modal_2.frame(:index,1).frame(:id,'SavedReport265').div(:id,'MainDiv').area(:index,2).click_no_wait()
sleep 10
modal_3 = modal_2.modal_dialog(:title,'Reporting')
The error displayed :
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/modal_dialog.rb:61:in
`locate': Modal Dialog with title Reporting not found. Timeout = 2.0
(Watir::Exception::NoMatchingWindowFoundException)
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/modal_dialog.rb:96:in
`initialize'
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/container.rb:188:in `new'
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/container.rb:188:in
`modal_dialog'
Not able to locate the Reporting modal dialog.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development