How to manage multi-instances of a same app (ex: multi-session) ??

Asked by Adrian Pothuaud

Hi everyone :)

I'm an apprentice in QA & Automation Testing Engineering in France and i'm trying to introduce sikuli to simplify my daily-work :)

I would like to know if using python/jython/Sikuli methods, we are able to open, identify and select several instances of the same app.

As an exemple if i want to open 2 windows of the notepad, how could i identify window1/window2 to perform different actions in each one ???

Please don't answer me to move the two windows and use regions or something like that, this is absolutely not what i am looking for :P Because if i want to replay several times my scenario, the window position will not be the same each time, so i'm looking for a way not moving windows but i really want, if it's possible to identify both windows and to be able to open and focus on one or the other... however they are open widely or not, whatever their position !

I hope with PIDs or something like that (processus management) this will be possible, but i'm not so much qualified yet :/

Thanks for your help, and sorry for my bad english ^^

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

use version 1.1.0 and on Windows use the window titles (supposing they are different).

Revision history for this message
Adrian Pothuaud (adrianpothuaud) said :
#2

Thanks RaiMan,

Using the Application class i've got all i need

Working well but as you said, we need window titles to be different wich is quite a limitation for the kind of scenarios i want to write, but i'll deal with it :)

Thanks

Revision history for this message
Adrian Pothuaud (adrianpothuaud) said :
#3

Thanks RaiMan, that solved my question.