← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #166249]: Can we detect if webpage is loaded instead of using wait or exists?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Supposing it is for Windows:

aWin = App("some distinct text from window title")
# this loop waits until a window with that title is available
while not aWin.window():
    wait(1)
aWin.focus() # should bring it to front
aWin.window().highlight(2) # to see it is right

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.