← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #257379]: Insert javascript in the IE-URL (non-QUERTY-Layout)

 

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

Thorsten posted a new comment:
I found a workaround myself:

def ie_execJS_URL(js):
#    js = "alert($('#somefield').focus());"
    keyDown(Key.CTRL)
    type("l")
    keyUp(Key.CTRL)
    wait(0.2)
    paste(':')
    paste(js)
    for x in js:
        type(Key.LEFT)
    type(Key.LEFT)
    type('javascript')
    type(Key.ENTER)
    wait(0.2)
    type(Key.ESC)

It's a bit slow and sloppy but works...

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