Share
Go down
senthilm.aynara
Active particpant
Active particpant
Posts : 19
Join date : 2009-09-15

Function doFlexClick not found on the External Interface

on Tue Oct 06, 2009 1:09 pm
Hi all,
I worked with sample flex application(Flex3StyleExplorer). it works fine in Selenium IDE and Selenium RC.
But when i try it my flex application, I am getting the following error in Selenium IDE,



Function doFlexClick not found on the External
Interface for the flash object


and in Selenium RC,


com.thoughtworks.selenium.SeleniumException:
ERROR: Threw an exception: Object
doesn't support this
property or method


Note : I have

placed “SeleniumFlexAPI.swc” file in my application.

Can anybody tell me, what is the problem here?
It would be great if anybody help me to solve this problem.

Thanks & Regards,
Senthilm
sudheer raj
Posts : 4
Join date : 2009-12-03

Re: Function doFlexClick not found on the External Interface

on Thu Dec 03, 2009 5:49 pm
even u have to add flash-selenium.jar and flex-ui-selenium.jar in your selenium script.
http://code.google.com/p/flex-ui-selenium/
rajbhuvi
Posts : 3
Join date : 2010-04-07

Re: Function doFlexClick not found on the External Interface

on Wed Apr 07, 2010 1:38 pm
sudheer raj wrote:even u have to add flash-selenium.jar and flex-ui-selenium.jar in your selenium script.
[url=http://code.google.com/p/flex-ui-selenium/
http://code.google.com/p/flex-ui-selenium/[/quote[/url]]


I too facing same issue, do have above jars in classpath.
Pls help to resolve it.

Thanks in advance
submitsim
Posts : 3
Join date : 2010-04-23

I get the same problem

on Fri Apr 23, 2010 1:44 am
flexUITester.type("username").at("TextInputId1");
flexUITester.type("password").at("TextInputId2");

flexUITester.click("ButtonId");

I get:

[junit] ERROR: Threw an exception: Object doesn't support this property or method
[junit] com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: Object doesn't support this property or method


Any Help please???
submitsim
Posts : 3
Join date : 2010-04-23

Re: Function doFlexClick not found on the External Interface

on Wed Apr 28, 2010 5:30 am
I get the same error, I spent days and days trying alot, but not working

Any help please.
flexUITester.type("eee").at("txt1");
flexUITester.click("forgotLink");

flexUITester.wait(3);

ERROR: Threw an exception: Object doesn't support this property or method
nudrch
Posts : 1
Join date : 2010-05-06

Working fine here

on Thu May 06, 2010 10:38 pm
Hi..
It seems to me you have a Flex problem and not a Java problem.
I have successfully made a simple Selenium test.

ExternalInterface is something Selenium has to define in Flex code, so that Javascript can call it.

Do you have the sfapi.swc library in your project? If you don't add it.
And check you have "include-library" for it - because the project must compile with it.

For a more extensive explanation you can read SFAPI documentation which is short and to the point.

BTW - I am running with Flex4.. so I guess it works fine with 3.
submitsim
Posts : 3
Join date : 2010-04-23

flex Selenium

on Wed May 19, 2010 4:00 am
yes it works fine now, I figured it out.
So now I use
SeleniumFlexAPI.swc

and I do simple flex Selenium testing such as

flexUITester.type("userName").at("txt1");
flexUITester.type("passWord").at("txt2");
flexUITester.click("goButt");
String str = flexUITester.readFrom("matchingID");

Now, I need to select an option from a manu, how can I do that?.
Also, it seems that I do not have many options with SeleniumFlexAPI. someting like click, type, read, wait..thats all.

in original selenium, there is select, get, and many many others such as mouseOver.


There is another way, that we get a class called DefaultSeleniumFlex extends DefaultSelenium
selenium= new DefaultSeleniumFlex(,,,,)

selenium.select(selectLocator, optionLocator);

and we have many options to use .

I get this error:
[junit] ERROR: Unknown command: 'flexType'
[junit] com.thoughtworks.selenium.SeleniumException: ERROR: Unknown command: 'flexType'

now it is not recognizing any selenium options.

Is there another new version of SeleniumFlexAPI.swc???

thanks

Sponsored content

Re: Function doFlexClick not found on the External Interface

Back to top
Permissions in this forum:
You cannot reply to topics in this forum