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

flex-ui-selenium not identifying controls #11

Open
GoogleCodeExporter opened this issue Jul 28, 2015 · 1 comment
Open

flex-ui-selenium not identifying controls #11

GoogleCodeExporter opened this issue Jul 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Added these in Eclipse->Project Properties->Java build path->Libraries
flashselenium-java-client-extension-1.0.jar
flex-ui-selenium-0.1.1.jar
junit.jar
selenium-java-client-driver-sources.jar
selenium-java-client-driver-test-sources.jar
selenium-java-client-driver-tests.jar
selenium-java-client-driver.jar
selenium-server-coreless.jar
selenium-server-sources.jar
selenium-server-test-sources.jar
selenium-server-tests.jar
selenium-server.jar
flash-selenium.jar

2. Flex Builder->Project->Flex Compiler options->-include-libraries 
SeleniumFlexAPI.swc as the additional compiler arguments
3. Versions
Flex SDK->3.2
SeleniumFlex-API_0.2.5
selenium-remote-control-1.0.1-dist(2)
FlexSpy-1.3
flashselenium-java-client-extension-1.0.jar


What is the expected output? What do you see instead?
Expected output: 
when I run the script in the attachment, the command flexUITester.type
("Admin").at("userInput");" should type the text Admin into the flex 
textbox with the id/name "userInput".

Also the tooltips of every flex component should show the id of the 
component.

Actual output:

When I run the script in the attachment in eclipse, I 
get "com.thoughtworks.selenium.SeleniumException: ERROR: Threw an 
exception: Object doesn't support this property or method" at the 
line "flexUITester.type("Administrator").at("userInput");"

What version of the product are you using? On what operating system?
flex-ui-selenium-0.1.1. on Windows Vista. 
Versions of other components are clear in Step 3 above.
IE7

Please provide any additional information below.

1.There are no issues observed when the Flex application is compiled with 
SeleniumFlex-API_0.2.5.swc.
2.I was informed that the tooltips of the components should show the id of 
the component if the compilation has happened properly. This is not 
happening.

3.Selenium ide shows that it is identifying the swf but when I enter the 
id of a textbox, it is not able to find.
4.When I enter a wrong swf name in the script in the steps below I get an 
error that the elements are not found which shows that the script is 
identifying the proper swf. The issue seems to be with identifying the 
individual controls. 
flashApp = new FlashSelenium(sele, "<swf name>");
flexUITester = new FlexUISelenium(sele, "<swf name>");


Original issue reported on code.google.com by snsandee...@gmail.com on 11 Feb 2010 at 4:26

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi,

We observed that we have different projects for storing the Library files, .swc 
files and the application as such in one project. The issue may be cropping up 
because of this.

Original comment by snsandee...@gmail.com on 15 Feb 2010 at 4:39

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