async requests not firing on video playback

17 views
Skip to first unread message

Jonathan Tushman

unread,
Jan 11, 2013, 11:24:57 AM1/11/13
to capybar...@googlegroups.com
Hi guys,

I just started porting from selenium to webkit, and for the most part its pretty awesome.  I am running into a couple hicups and wonder if someone from the community can help.

I have a test where I play a video.  The video player fires a bunch of events.  When an event is fired I do two things:

1) I add some text to the page (like "Video Started" or "Video Completed"
and 2) I fire an async request to my application to store event information

The video is certainly playing, and the text updates are coming to the screen -- but the async requests are not being fired.

This works when i use a selenium driver.

Any ideas?

Thanks!

Jonathan



Joe Ferris

unread,
Jan 11, 2013, 11:29:26 AM1/11/13
to capybar...@googlegroups.com
This is pretty primitive, but capybara-webkit will relay console.log messages to your terminal. The first thing I do when debugging something like this it to add console.log statements in a bunch of places to see what is and isn't getting fired. Sometimes it's a mismatch between the browser's understanding of events and capybara-webkit, and sometimes everything is getting fired but there's an async issue that's making it seem like events aren't being fired.

-Joe

Jonathan Tushman

unread,
Jan 11, 2013, 4:44:19 PM1/11/13
to capybar...@googlegroups.com
Thanks Joe.  Not primitive at all.  smart even.

But still no luck :(  No events being fired with webkit, but events being fired with selenium.

I also tried printing out page.driver.error_messages

I am using flowplayer (version 3.2.6)  which is a flash video player plugin to play the video and fire the events

One other note, and this could be a red herring, but I am getting the following warning:

[36183:707] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

I am going to keep digging.  It would be great to get this to work!
Reply all
Reply to author
Forward
0 new messages