Native Mouse events with Flash and Selenium
Posted
by Dan at Demand
on Stack Overflow
See other posts from Stack Overflow
or by Dan at Demand
Published on 2010-04-30T01:58:26Z
Indexed on
2010/04/30
2:07 UTC
Read the original article
Hit count: 390
I understand that Selenium does not support Flash, but it is my understanding that I should be able to do some simplistic testing of Flash by using Selenium's built in native mouse support and doing mouse up/down events based on coordinates. Is this correct? I can't seem to get it working.
I'm trying to test on this page: http://mandy-mania.blogspot.com/2010/04/sneak-peek-of-final-season-of-lost-dvd.html and all I'm trying to do is click on the flash object so it plays the video.
I've tried all sorts of commands, MouseOver, MouseDown, MouseDownAt, MouseUp, MouseUpAt, etc. So, I'm wondering if this just theoretically doesn't work or if I'm just doing something wrong. The xpath I'm using is //object[@id='player'], although I've tried a number of different combinations. And yes, I've also tried just the straight click command.
Any suggestions?
Thanks!
© Stack Overflow or respective owner