Query which OS? Need different image set per OS

Asked by Simon Langdon

Perhaps this isn't the right solution (something simple please!)

I have a series of scripts to test some software; these need to run on a variety of (Windows) OSs. However since XP uses different controls to Win7 I'm finding scripts failing due to image matching failures.

One solution would be to query the OS and then choose a new image folder ...

    myImagePath = "k:\\ItemPropertiesGrid\\test\\IPWCommands.sikuli\\images"

    if not myImagePath in getImagePath (): addImagePath (myImagePath)

Is this possible? Do we know of another solution?

Question information

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

No other solution, than to switch the image set with respect to the system you are running on.

I have the vague idea, to auto-generate the needed images based on a run trace from another system --- but very vague currently ;-)

Revision history for this message
obiwan-92 (obiwan-92) said :
#2

Hi.

I had the same problem a while ago. I worked on Win XP et 7.
My solution was to not use the image but the Windows shortcut to navigate in the OS (launch and close some applications, ...).

It should be work for you.

Regards.

Can you help with this problem?

Provide an answer of your own, or ask Simon Langdon for more information if necessary.

To post a message you must log in.