How to click on a Webelement by using its position (X and Y coordinates) on web page

3,910 views
Skip to first unread message

pratika

unread,
Oct 11, 2012, 2:52:10 AM10/11/12
to webd...@googlegroups.com
I want to start a flash window by clicking on start button displayed on the flash window

Can anyone help!


Krishnan Mahadevan

unread,
Oct 11, 2012, 2:53:43 AM10/11/12
to webd...@googlegroups.com
Selenium CANNOT interact with Flash elements.

To click on a specific location please use : 


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



On Thu, Oct 11, 2012 at 12:22 PM, pratika <anu.r...@gmail.com> wrote:
I want to start a flash window by clicking on start button displayed on the flash window

Can anyone help!


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/189Cld-NwqUJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

pratika

unread,
Oct 11, 2012, 6:05:50 AM10/11/12
to webd...@googlegroups.com
Hi  Krishnan  

Thanks for ur suggestion 

I want to use X Y coordinates to click on tha flash element because webdriver is not able to identify flash objects.

To use above method that you suggest  I need to identify that element first to get its location......but this is my issue that I am not able to intract with the element because its flash object.

Mike Riley

unread,
Oct 11, 2012, 4:08:22 PM10/11/12
to webd...@googlegroups.com
You didn't understand him.  There is no element to identify, because it is Flash, which is why Selenium can't interact with it.

You can use the Robot class to do this though, I believe.  It would have to be local though and not remote.

Mike

Mark Collin

unread,
Oct 12, 2012, 1:15:38 AM10/12/12
to webd...@googlegroups.com

You can use a robot class to click on an X/Y coordinate, but you can’t use a robot class to identify flash elements.

 

Your best bet is one of the following:

 

http://code.google.com/p/flash-selenium/

https://code.google.com/p/sfapi/

To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/MQhS6FHHVn0J.

pratika

unread,
Oct 12, 2012, 2:19:35 AM10/12/12
to webd...@googlegroups.com
Hi Mark

I don't know the concept of robot class 
Can you give some idea of it

I also use Flex API mentioned in the link given by u
But its not working in Selenium IDE I guess this article is missing some steps

Mark Collin

unread,
Oct 12, 2012, 8:41:33 AM10/12/12
to webd...@googlegroups.com
There is no documentation missing, Selenium IDE just does not support flash.

If you want to get into automation seriously bin the IDE and select a language and start writing Selenium tests in code.  All of the suggestions so far have been provided using the assumption that you are using the Selenium WebDriver/RC API with Java (i.e. writing the tests in code).

To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/0QJXV7A-aAwJ.

Dibyaranjan Kar

unread,
Oct 12, 2012, 12:05:50 PM10/12/12
to webd...@googlegroups.com
Hi,

Robot will not help as you will not get the screen coordinates as per the screen using selenium. Selenium will give you the screen x y coordinates w.r.t browser window.

Thanks
Dibya

Sachin Jain

unread,
Oct 22, 2013, 2:47:05 AM10/22/13
to webd...@googlegroups.com
Hi Mark,
      I don't know the concept of robot class and how to find the element by location. Currently i am working with selenium web driver,In my web application, some of the page developed in flash, i want to automate whole application please mail me a sample code "How to access element of flash page


Thanks 
Sachin


On Friday, October 12, 2012 10:45:55 AM UTC+5:30, Mark Collin wrote:

Rick Darcy

unread,
Oct 31, 2013, 8:54:05 AM10/31/13
to webd...@googlegroups.com

You can integrate selenium with sikuli (www.sikuli.org)

On Oct 11, 2012 1:52 AM, "pratika" <anu.r...@gmail.com> wrote:
I want to start a flash window by clicking on start button displayed on the flash window

Can anyone help!


darrell

unread,
Oct 31, 2013, 1:05:46 PM10/31/13
to webd...@googlegroups.com
This question is equivalent to "I have a screwdriver (selenium) and I'm trying to put shingles on my roof (automate flash). How do I do it?" The answer is, you don't. Selenium was not designed for flash. There are tricks you can do to force selenium to do it but the effort to do it and maintain it is not sensible. Most the attempt to do this are old and don't work with the current selenium. I would recommend you use selenium for what it is good for (finding the flash object) but using something like sikuli (as Rick recommends) for interacting with the flash object.
Reply all
Reply to author
Forward
0 new messages