Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using getFlexVisible #15

Open
GoogleCodeExporter opened this issue Jul 28, 2015 · 5 comments
Open

Problem using getFlexVisible #15

GoogleCodeExporter opened this issue Jul 28, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

When calling waitUntilVisible() or isVisible(), we get the following error

Non-correspondance du nombre d'arguments sur
sfapi.commands::PropertyCommands/getFlexVisible(). 2 prévu(s), 1 détecté(s).
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at flash.external::ExternalInterface$/_callIn()
    at <anonymous>()

After looking at the latest sfapi code :
http://code.google.com/p/sfapi/source/browse/trunk/flex_source/src/sfapi/command
s/PropertyCommands.as

We confirm the existence of a second argument to the "getFlexVisible"
command, which prevent the flex-ui-selenium to be used with sfAPI 0.2.6.

Thanks in advance, and congratulation for this wonderful job !

selenium-RC 1.0.3
sfapi 2.5.6
selenium-java-client-driver 1.0.1
flashselenium-java-client-extension 1.0
flex-ui-selenium 0.1.1

Original issue reported on code.google.com by pioupiou@gmail.com on 3 Apr 2010 at 9:31

@GoogleCodeExporter
Copy link
Author

Hello pioupiou

I have different error and I hope that you can help since you passed this level.

Here is what I have:

selenium = new DefaultSelenium("localhost", 4444, "*iexplore",BASE_URL);
                  selenium.start();
                  selenium.open(PAGE);
                  selenium.waitForPageToLoad("30000");
                  Thread.sleep(10000);
                  flexUITester = new FlexUISelenium(selenium, swf_name);
                  flexUITester.waitUntilLoaded();

testCaseMethod:

                  flexUITester.type("username").at("txt1");
                  flexUITester.type("password1234").at("txt2");
                  flexUITester.click("goBtn");

I get this error. 

ERROR: Threw an exception: Object doesn't support this property or method
when they say "rebuild yourFlexapplication with SeleniumFlexAPI.swc" where 
should I 
build it, I am using ant compiler. 

Can you help please???


Thanks

Original comment by H00...@gmail.com on 30 Apr 2010 at 2:38

@GoogleCodeExporter
Copy link
Author

Hi.

I fact, you have to add seleniumFlexAPi.swc as an included library of your Flex
application. So, when you launch the mxmlc task with ant, just add the swc as an
included-library. 

Please check the mxmlc documentation.

Original comment by pioupiou@gmail.com on 1 May 2010 at 7:25

@GoogleCodeExporter
Copy link
Author

Is there a version of sfAPI that does not have this problem with 
getFlexVisible() ?

Original comment by chris.e....@gmail.com on 21 May 2010 at 12:41

@GoogleCodeExporter
Copy link
Author

Any news on the wrong number of arguments in getFlexVisible?

Original comment by martin.s...@agillic.com on 13 Aug 2010 at 6:54

@GoogleCodeExporter
Copy link
Author

Applying this patch to PropertyCommands.as and recompiling swfapi.swc fixes my 
argument mismatch error.

Original comment by George.H...@gmail.com on 15 Jul 2011 at 9:11

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant