History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-144
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: MadNut
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

Needs fire_event_no_wait() method

Created: 09/Feb/07 11:46 AM   Updated: 04/Jun/07 02:16 PM
Component/s: Modal Web Dialog
Affects Version/s: None
Fix Version/s: Future

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Dependency
 
This issue is depended on by:
WTR-146 Framework for allowing fine-grained, ... Major Open
Relationship
This issue Relates to:
WTR-146 Framework for allowing fine-grained, ... Major Open
 


 Description  « Hide
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

 All   Comments   Work Log   Change History      Sort Order:
Bret Pettichord - 04/Jun/07 02:15 PM
Need to consider this in conjuction with 146