← Back to team overview

sikuli-driver team mailing list archive

[Question #667901]: App.close() closes Gmail instead of my app

 

New question #667901 on Sikuli:
https://answers.launchpad.net/sikuli/+question/667901

I'm using Sikuli to automate testing of my company's software. It is named something like "Company Name Software". My scripts have a setup which includes the line 'AppName=App("Company Name Software")' and then I can do things like 'if not AppName.window(): App.open("C:\Path\Company Name Software.exe")' and 'AppName.close()'

This all works fine...UNLESS I have my company Gmail open and as the current tab in chrome. For some reason, this seems to satisfy the requirements for being AppName. If I check if the software is open, with it closed but Gmail open, the script thinks it is open. If I use 'AppName.close()' it closes Chrome.

The only thing I can think of is the full name of the Gmail tab is 'Inbox - myname@xxxxxxxxxxxxxxx - Company Name Inc. Mail' and somehow 'Company Name Inc.' is close enough to 'Company Name Software' and the script gets confused somehow.

This isn't really a blocker issue, as if I notice what's going on I just change the tab in Chrome, but it is a big annoyance.

Ideally, I'm looking for some way to permanently stop this behaviour. Perhaps somebody knows of a workaround. I'm also wondering if this is a genuine bug, or if perhaps I'm using the App functions incorrectly.

Thoughts?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.