0

I'm loading a URL using Selenium in Mozilla, which basically contains a 'Login' button made in flash, which I want to click. I went through the following resources: 1.How to click an element in Selenium WebDriver using JavaScript, but the solution didn't work for me.

2.https://code.google.com/p/flash-selenium/, but it doesn't tell me how to click on a button.

Here is the element code:

<embed width="100%" height="105%" align="middle" type="application/x-shockwave-flash" pluginspage="adobe.com/go/getflashplayer"; allowscriptaccess="always" name="TTDSWeb" bgcolor="#ffffff" quality="high" id="TTDSWeb" src="TTDSWeb_V15.6.3.swf" allowfullscreen="true" allownetworking="all">

Using "FlashFireBug", I'm able to get the id of the 'Login' button, but I'm unable to click on it.Login button and it's id using FlashFireBug

Community
  • 1
  • 1
Ruchir Sharma
  • 819
  • 1
  • 10
  • 18
  • can you provide the test-code you got so far? and the url of the site where you are trying to click the button – drkthng Jul 22 '15 at 12:10
  • @drkthng The URL is: http://ttdhwc001.global.ad.sabre.com:8080/TTDSWeb/TTDSWeb.html. On the page, I aim to click the "Login" button whose object id is "loginbut". Though I doubt whether you would be able to access this URL, as this is my organization's web page. – Ruchir Sharma Jul 22 '15 at 12:25
  • unfortunately url is not accessible, not in the www is it? it's on your companies intranet or sth? So maybe you post some lines of the html you see around the button, then I can suggest sth you could try – drkthng Jul 22 '15 at 12:33
  • haha, sorry didn't read the whole comment of yours. Second part of my comment still holds. – drkthng Jul 22 '15 at 12:41
  • @drkthng Sorry for late reply. Here's the html: – Ruchir Sharma Jul 22 '15 at 13:34
  • if you already tried the way in my answer, please provide the code for how you currently try to click the button. cheers – drkthng Jul 22 '15 at 13:44
  • updated my answer -> have a look at this https://seleniumonlinetrainingexpert.wordpress.com/2012/12/02/how-to-do-flash-testing-using-selenium-webdriver/ – drkthng Jul 22 '15 at 13:56

1 Answers1

0

Hi please note selenium is only for HTML objects it does not works for Flash Object as they have Difference structure to add support of Flash You need a Third party tool integration like Sikuli please have a look at this answer Selenium Integration with Sikuli

This will show you how you can work with flash objects in selenium

Community
  • 1
  • 1
fahad
  • 389
  • 2
  • 12