selenium IDE

148 views
Skip to first unread message

Nini7016

unread,
Feb 20, 2010, 12:37:47 PM2/20/10
to Selenium-Flex API - Support
Bonjour tout le monde :)

j'ai installé le plugin Selenium IDE pour la firefoxe (avec la
dernière version). J'ai rajouté le script java script user-
extensions.js dans l'option de Slenium Selenium Core extensions.
Ensuite on lançant ce framework sur une page HTML ça marche bien mais
lorsque je le lance sur une application Flex, on voit très bien les
commandes Flex....mais ça enregistre rien du tout :( :(
Pourrais vous me dire si quelqu'un à réussi à enregistrer les test
pour une application FLEX s'il vous plait... C'est très urgent :(

Merci beaucoup

Nini7016

unread,
Feb 20, 2010, 12:44:18 PM2/20/10
to Selenium-Flex API - Support
Hi

I installed the last version of selenium IDE, then i added the file
user-extension.js in the option of Selenium Core extensions. A add in
my application Flex the livrairie sfapi.swc before i compile it.
unfornutanely, when i run the le selenium IDE in HTML page, it works
but it didn't work for my application Flex. You can notice that we see
the commands Flex in interface of selenium IDE but anywhere i clik in
the page it didn't record anythink :( :(

Did any body can record the test in flex apllication please :(
It is very urgent please

Thank you very much

Allan MacDonald

unread,
Feb 20, 2010, 1:51:34 PM2/20/10
to sfapi-...@googlegroups.com
Hi,

Unfortunately, the Selenium-Flex API does not support recording from the Selenium IDE tool. What it does, is allow you to include your own manual steps,and it will playback those commands along with your normal html Selenese commands. For now, you will have to record all of you html commands using the Selenium IDE tool, add in the Flex commands manually, and they will playback as one script.

Cheers,

Allan

Nahla Laribi

unread,
Feb 20, 2010, 2:51:01 PM2/20/10
to sfapi-...@googlegroups.com
First of all, thank you very much for your response,
I would like to know more information please. what do you mean about "to include your own manual step"  ? do you like to say we write our own tests ? is that ?
Please could you tell me more information ?,

Thank you so much :)


2010/2/20 Allan MacDonald <amacd...@thecape.ca>

Allan MacDonald

unread,
Feb 20, 2010, 7:33:55 PM2/20/10
to sfapi-...@googlegroups.com
Yes, that is correct. The selenium ide script steps that deal with flex functionality must be written manually. The benefit is that the Selenium ide test scripts, when played back, will include both traditional html/javascript as well as the flex functionality.

Hope this helps,

Cheers,

Allan

Nahla Laribi

unread,
Feb 22, 2010, 4:16:05 AM2/22/10
to sfapi-...@googlegroups.com
Thank you very much :)
In my application i have many files mxml, and in every file there 'id' of components. How can i retrieve the 'id'.
I use flexUITester.at(id). But how can find the file which contain this 'id'. How can i specifie the file which contain this 'id' in my code.

Thank you very much
could any body help me please :(


 
2010/2/21 Allan MacDonald <amacd...@thecape.ca>

Allan MacDonald

unread,
Feb 22, 2010, 6:17:17 AM2/22/10
to sfapi-...@googlegroups.com
Hi,

When you compile your flex application with the sfapi.swf file, all components in your application that have been assigned id values will be exposed through the externalinterface. From a developer perspective, you can move your mouse over the flex portion of the application, and the id numbers that have been exposed will be represented by tooltips. Most of them will be visible, but if you have the source code, you can take a look at all those elements that have and id attribute and value. If there is a component that you would like to interact with in testing that is not currently exposed, add a unique id attribute to that component and recompile the flex source code with sfapi.swf.

Allan

anil arige

unread,
Feb 22, 2010, 9:11:32 AM2/22/10
to sfapi-...@googlegroups.com
Hi Allan,

For my application the source elements in the login page like username & password text fields , SignIn button are present inside a component whose id is exposed by the swf file. So the individual ids of the text boxes are not exposed even if they have unique ids. Its exposing the main id of the total component. So how to proceed now. ?
 Any help regarding this issue please.

Thanks,
Anil

Nahla Laribi

unread,
Feb 22, 2010, 9:19:24 AM2/22/10
to sfapi-...@googlegroups.com
Thank you very much for your response. I sucssed to retreive the id of compenent.
Do you know how can i test if we have cliked in the composent in order to test the drag and drop please

Thank you very much again :)


2010/2/22 Allan MacDonald <amacd...@thecape.ca>

Allan MacDonald

unread,
Feb 22, 2010, 9:44:36 AM2/22/10
to sfapi-...@googlegroups.com
If the tooltips are not displaying the id's for the individual items in the main component, as long as they have id's you will still be able to access them.

This happened to me as well, but I was still able to access the elements because they had id attributes assigned to them.

Cheers 

Allan

Nahla Laribi

unread,
Feb 22, 2010, 10:23:26 AM2/22/10
to sfapi-...@googlegroups.com
Thanks a lot :):):):)


2010/2/22 Allan MacDonald <amacd...@thecape.ca>
If the tooltips are not displaying the id's for the individual items in the main component, as long as they have id's you will still be able to access them.

Nahla Laribi

unread,
Feb 23, 2010, 6:40:50 AM2/23/10
to sfapi-...@googlegroups.com
Hello,

Do you know how we can select an element whith selenium.
In fact, i retreive the id of an element that i would like to select ?

Any help please :)


2010/2/22 Nahla Laribi <nahoul...@gmail.com>

Nahla Laribi

unread,
Feb 23, 2010, 9:30:32 AM2/23/10
to sfapi-...@googlegroups.com
I would like juste to specifie more my question : How we can select an element (a node) of a list which has a type TREE please ???

Thank you ;)


2010/2/23 Nahla Laribi <nahoul...@gmail.com>

Nahla Laribi

unread,
Feb 24, 2010, 8:30:19 AM2/24/10
to sfapi-...@googlegroups.com
Hi

It 's me again :)
thanks to you propostion I succssed to create a file whithin a folder that created within a project.
I succeed also to open this file already created but when i write an other 'clik' it close the file ....what can i do to keep the file opened please

There is my code :
                    //create a project               
                     flexUITester.click("toolbar_newproject");
                     flexUITester.wait(1);
                     flexUITester.type("A1").at("fn");
                     flexUITester.wait(1);
                     //flexUITester.click("can");
                     flexUITester.click("sub");
                     int listItem = 0;
                     String listItemString = Integer.toString(listItem++);
                    
                     //select project
                     String value = flashApp.call("doFlexSelectIndex", "fileNavigatoerViewId", "0");
                    
                     //added folder
                     flexUITester.wait(1);
                     flexUITester.click("LinkButton9");
                     flexUITester.wait(1);
                     flexUITester.type("zair").at("fn");
                     flexUITester.wait(1);
                     flexUITester.click("sub");
                    
                    
                     //select folder
                     flexUITester.wait(1);
                    // String value1 = flashApp.call("doFlexAddSelectMatchingOnField", "fileNavigatoerViewId", "1", "1");doFlexClick
                     String value1 = flashApp.call("doFlexSelectIndex", "fileNavigatoerViewId", "1");
                    
                     //create file
                     flexUITester.wait(1);
                     flexUITester.click("LinkButton10");
                     flexUITester.wait(1);
                     flexUITester.type("zair2").at("fn");
                     flexUITester.wait(1);
                     flexUITester.click("sub");
                    
                     //select file
                     flexUITester.wait(1);
                     String value2 = flashApp.call("doFlexSelectIndex", "fileNavigatoerViewId", "2");
                    
                     //open file
                     flexUITester.wait(1);                   
                     flexUITester.doubleClick("fileNavigatoerViewId");
                    
                     // clic button :::::HERE IT CLOSE THE FILE THAT IS CREATED BEFORE...HOW CAN I DO TO KEEP IT OPENED PLEASE
                    //flexUITester.wait(10);                   
                    flexUITester.click("LinkButton10");



It 's very urgent please

2010/2/23 Nahla Laribi <nahoul...@gmail.com>

Nahla Laribi

unread,
Feb 27, 2010, 7:22:07 PM2/27/10
to Selenium-Flex API - Support
I hope that you are fine ;)

I will explain more my problem. 

In fact, We have an application  Flex which is developped by others persons. We will try to do integration tests to this application. 

which  contains a palette and canvas, when we click on an element in the palette THEN we move the mouse to the canvas in order to click again ( to past this element)  in the canvas. 

Before clicking on  the element (in the palette ) we must chek  that the mouse is on  the palette. and when we click in the canvas we must verfie that the mouse is in the palette.


My question is :
       - are there in Selenium (javaScripts methodes) which can check wether  the mouse is in the palette ?? or  in the canvas ?

       - How can we move the mouse from the palette to the canvas ? we saw DoFlexMouseMove but it seems that it didn't work ?? Are there other methods please; and if it is the case which methods do work?  
    
 

I hope that you have understood my questions, it will be very helpfull to answer me ;)

really (honestly)  we have helped me before very well :):)

Nahla Laribi

unread,
Feb 27, 2010, 7:22:53 PM2/27/10
to sfapi-...@googlegroups.com
Hi everybody

I'am usually blocked with the same Problem.
In fact, i can clik in  a button but when i try to move the mouse to the canvas it didn't work. how we can move the mouse from one component Flex to another ?? Please ....??

I tried also the methode java of Selenium (moveAt and moveto) but it didn't make the mouse moving :( :( :( 

Any idéa please, I'am really blocked 

Thank you very much ;) ;)

Nice sanday 

sudheer babu

unread,
Oct 17, 2013, 7:37:48 AM10/17/13
to sfapi-...@googlegroups.com
Thanks a lot for the wonderful information and it is useful for us.123trainings provides best <a 

Reply all
Reply to author
Forward
0 new messages