Added fire_event wrapper in Selenium sessions
This commit is contained in:
parent
6ccb8a6c3a
commit
db81a97e42
@ -110,6 +110,11 @@ module Webrat
|
|||||||
@selenium.dragdrop(*args)
|
@selenium.dragdrop(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def fire_event(field_identifier, event)
|
||||||
|
locator = "webrat=#{Regexp.escape(field_identifier)}"
|
||||||
|
@selenium.fire_event(locator, "#{event}")
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def adjust_if_regexp(text_or_regexp) #:nodoc:
|
def adjust_if_regexp(text_or_regexp) #:nodoc:
|
||||||
|
Loading…
Reference in New Issue
Block a user