Kuhtich / flex-ui-selenium

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

accessing components in flex-ui with selenium #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I have a component in my flex code, like this:
<mx:Image id="imageTest" 
source="@Embed(source='com/qwest/images/control-center-login-hero.jpg')" 
width="820" height="180" y="10"/>
<mx:HBox y="198" horizontalGap="16" backgroundColor="#FFFFFF" 
borderStyle="none" borderColor="#FFFFFF" width="100%" x="0">

<login:Login id="loginForm" />
</mx:HBox>

2. I am able to access imageTest above like this:
3. Assert.assertTrue(selenium.isVisible("imageTest")); and 

What is the expected output? What do you see instead?
I am able to access loginForm as above. However, not able to access the ids 
inside the loginForm. I have a userName and password fields in the loginForm 
like
<mx:TextInput id="txtUserName"/>
But unable to access it.

What version of the product are you using? On what operating system?
I am using 
flex-selenium-0.1.1.jar and selenium server 2.0.0 jars... also using the 
userExtensions.js file.. please let me know how I can access a component inside 
the flex code from selenium.

Please provide any additional information below.

Original issue reported on code.google.com by ssasipr...@gmail.com on 8 Aug 2011 at 2:28