sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30269
Re: [Question #261193]: [1.1.0]JRuby scripting: popSelect does not work
Question #261193 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261193
Status: Open => Answered
RaiMan proposed the following answer:
-- !. sorry for the docs bug: it is named popSelect (not select) (will
fix it)
-- 2. even if you used popSelect correctly in JRuby scripting context,
it would not work, do to a bug in the Sikulix JRuby wrapper, which will
be fixed in the next nightly.
-- 3. the correct usage in JRuby context currently would be:
items = ["model-a","model-b","model-c"].to_java :string
selected = popSelect("model:","Select model",items)
... but hopefully the next nightly build will also allow to use:
items = ["model-a","model-b","model-c"]
selected = popSelect("model:","Select model",items)
... since the wrapper can do this modification.
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.