← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689290]: app.focus()-need asistance

 

Question #689290 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689290

muni posted a new comment:
well iam using aremote desktop connect and on top of that i presenting my screen to others for a demo to show how the automation works.
so there are 3 layers
itrac app =some app

below is the full code:

itracapp = App(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')
while exists(Pattern("1582814114669-3.png").similar(0.81)):  
    itracapp.focus("Autobahn")
    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)
    click(Pattern("1582821934102-3.png").similar(0.87))
    wait(1)

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