sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18213
[Question #229444]: Why Key.ENTER doesn't work?
New question #229444 on Sikuli:
https://answers.launchpad.net/sikuli/+question/229444
It ain't working!
It refuses to press.
It denies.
Windows 8, Java 7 x64 / Windows 2003 Server, Java 6 x32 ain't working.
It types first - base url - it's ok,
but then it starts to type urls and doesn't press <Enter> (neither Key.Enter, nor "\n").
Time delays doesn't do anything. app.focus() doesn't do anything.
It types urls one after another.
I've got to click to a little green arrow of Firefox location bar.
I've got some code (1 month expires):
firefox_shortcuts.py - http://dpaste.de/XYYqw/
common.py - http://dpaste.de/FCKUr/
site.py - http://dpaste.de/xTZ44/
main.py - http://dpaste.de/x8edR/
So example code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from sikuli.Sikuli import *
app = App('Mozilla Firefox')
urls = ["http://www.example.org/index/",
"http://www.example.org/moreindex/",
"http://www.example.org/indexindex/"]
# site.home()
# site.Firefox.load(url)
# firefox_shortcuts.Miscellaneous.select_location_bar():
app.focus()
type('d', KeyModifier.ALT)
wait(1)
# common.clear_field()
app.focus()
type('a', KeyModifier.CTRL)
type(Key.DELETE)
type("http://example.org")
type(Key.ENTER)
wait(1)
for url in urls:
# site.Firefox.load(url)
# firefox_shortcuts.Miscellaneous.select_location_bar():
app.focus()
type('d', KeyModifier.ALT)
wait(1)
# common.clear_field()
app.focus()
type('a', KeyModifier.CTRL)
type(Key.DELETE)
type(url)
type(Key.ENTER)
wait(1)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.