Kuhtich / flex-ui-selenium

Automatically exported from code.google.com/p/flex-ui-selenium
0 stars 0 forks source link

flex-ui-selenium not identifying controls #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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