Support for Chrome

4 views
Skip to first unread message

Peter Nicolai Motzfeldt

unread,
Jul 8, 2010, 10:24:13 AM7/8/10
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

Gary

unread,
Jul 9, 2010, 10:32:42 AM7/9/10
to FunFX

Peter,

Glad to see your working on this. I hope you'll have time to
continue. I don't have an idea of how to proceed but I will read over
what your trying to do and see if I have any ideas.

-Gary

On Jul 8, 7:24 am, Peter Nicolai Motzfeldt <motzfe...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages