[
http://jira.openqa.org/browse/WTR-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bret Pettichord reopened WTR-144:
---------------------------------
This commit does not seem to be related to this issue.
> Needs fire_event_no_wait() method
> ---------------------------------
>
> Key: WTR-144
> URL: http://jira.openqa.org/browse/WTR-144
> Project: Watir
> Issue Type: Improvement
> Components: Modal Web Dialog
> Reporter: MadNut
> Priority: Major
> Fix For: Soon
>
>
> fire_event_no_wait is helpful for handling modal dialog, that opens by JS
> scripts via event.
> Here is code for that functionality:
> watir.rb:
> class Element
> ...
> def fire_event(event)
> fire_event!(event)
> @container.wait
> end
> def fire_event!(event)
> assert_enabled
>
> highlight(:set)
> ole_object.fireEvent(event)
> highlight(:clear)
> end
> def fire_event_no_wait(event)
> assert_enabled
>
> highlight(:set)
> object = "#{self.class}.new(self, :unique_number,
> #{self.unique_number})"
> @page_container.eval_in_spawned_process(object +
> ".fire_event!(\"#{event}\")")
> highlight(:clear)
> end
> ...
> end
--
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