sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56719
[Bug 1673089] Re: [1.1.1] macOS 10.12 Sierra: type("test") only types tt in google search field and other input fields/areas--- workaround
** Changed in: sikuli
Milestone: 1.1.1 => 2.0.5
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1673089
Title:
[1.1.1] macOS 10.12 Sierra: type("test") only types tt in google
search field and other input fields/areas--- workaround
Status in Sikuli:
Confirmed
Bug description:
*************************** workaround
use paste() for the text parts and type() only for typing functional keys:
paste("test"); type(Key.ENTER)
or switch of the accented popup behavior (see below)
----------------- findings until now
Seems to be related to the possible selection of accented characters if the key is held for some time (which is valid for e and s).
The problem seems to be somewhere between the handling of the input
field input and the way Java Robot types a character.
according to https://infinitediaries.net/os-x-choose-between-the-
character-accents-popup-and-key-repeat-when-holding-down-a-key/
switch back to repeat key from accented character popup:
**** In a Terminal: defaults write -g ApplePressAndHoldEnabled -bool false
In this mode type works as expected.
switch back reverse (popup again) (default in macOS Sierra).
**** In a Terminal: defaults write -g ApplePressAndHoldEnabled -bool false
**** problem for SikuliX: cannot be done on the fly, since the
offending application has to be stopped and restarted again.
**** in Terminal: defaults read -g ApplePressAndHoldEnabled
reveals you current setting:
0: no accented character popup (type should work as expected)
1: you get accented character popup, type makes problems
--------------------------------------------
We are experiencing issues with type() command under Mac OS Sierra.
-- while typing accent menu appear - see
https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/Product_Help/en_US/PUBLIC_USERS/PL124/S0120_AccentMenu.png
-- typing actually miss some chars. For example typing "test" results
in "tt" - https://www.screencast.com/t/xL79S0JK
-- typing doesn't fire onKeyUp event in some fields(typing manually
fires events)
Please note that we do not have above issues with El Capitan and
Yosemite Mac OS versions. We tried latest nightly Sikuli build as
well. Java versions we are using is 1.8.121(latest)
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1673089/+subscriptions
References