← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #144310]: type(somekey, KEY_META) inconsistent

 

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

RaiMan posted a new comment:
the intention was, to either use an existing browser window or open the
browser and wait until the window is ready.

the construct for this purpose has to be

browser = App("firefox")
browser.focus() # opens FF if not open
while not browser.window():
    wait(1)
type("l", KEY_META); wait(0.5)
paste("www.sikuli.org"); type(Key.ENTER)

works perfectly on my Mac.

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