← Back to team overview

sikuli-driver team mailing list archive

[Question #689304]: popups on wrong screen

 

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

I have a issue with popups show in a different screen rather than defined.
I have two screen 1 and 2
popups always popup in the screen 2 or vice versa. could you please assist me if iam missing anything in specific here??

import shutil
import os
import subprocess
scr1=Screen(0)
scr1.find("1582743393321-3.png")
itracapp = App(r'C:\Program Files (x86)\Deutsche Bank\Autobahn Toolbar (UAT)\AutobahnBootstrapper.exe')
#subprocess.call(r'C:\Program Files (x86)\Deutsche Bank\Autobahn Toolbar (UAT)\AutobahnBootstrapper.exe')
itracapp.open()
itracapp.focus()
searchbar = exists("1583244105302-2.png")
if exists("1583244105302-2.png"):
    click("1583244159790-2.png")
    type('itrac dashboard'+ Key.ENTER)
else:
    
    wait("toolbar3-2.png",60)
    wait(2)
    appicon=findAll(Pattern("1582824632346-3.png").similar(0.82))
 
    click(Pattern("1582730255577-3.png").targetOffset(-1,-5))
    wait(2)

    wait(Pattern("1582730978402-3.png").similar(0.86),10)
    
#def startitrac():
    searchbar = find(Pattern("1582730978402-3.png").similar(0.85))
    
    click(Pattern("1582730978402-3.png").similar(0.85).targetOffset(-94,1))
    type('itrac dashboard'+ Key.ENTER)
    #wait(13)
where = Region(0,0,546,303)   
launcherissue = exists(Pattern("1582814114669-3.png").similar(0.81),15)
#itracapp.focus(iTrac Dashboard,[1])
while exists(Pattern("1582814114669-3.png").similar(0.81)):  
    #itracapp.focus(iTrac Dashboard,[1])
    wait(2)
    #
    where = Region(525,488,733,241)
    result = Do.popError("", "Unable to Launch the dashboard-retsrate is required", "", False, 3)
    click("1582821885318-3.png")
    wait(2)

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