Peter Nicolai Motzfeldt
unread,Jul 8, 2010, 10:24:13 AM7/8/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fu...@googlegroups.com
Hi
Today we tried to add support for Chrome in FunFX, by using the watir-webdriver, but had no luck due to we are nok familier with how we should get the embedded flash object in the fire_event method of the browser class. Similar to this which is for Firefox:
def fire_event(flex_locator, event_name, args) # :nodoc:
eval_js %{return element.fireFunFXEvent(#{flex_locator}, #{event_name.inspect}, "#{escape_double_quotes(args)}")}
end
def eval_js(js)
result = @scripter.__send__(:execute, operate{js}, self)
raise "Nothing returned from Safari. Are you sure you have compiled the Flex app with FunFX?" if result.nil?
result
end
Does anyone have any idea how how this should be done with Chrome and watir-webdriver?
Thanks in advance
- Peter