← Back to team overview

sikuli-driver team mailing list archive

[Bug 1757368] Re: [1.1.2] IDE: JavaScript support not working --- fixed 1.1.3 2018-03-22 build#10

 

example:

Debug.user("hello from JavaScript");
var img = "img.png";
hover(img); // uses Screen(0) like in Python
var scr = new Screen();
print(scr);
scr.hover(img); // uses the Region scr

The SikuliX features in general have to be used like in Java programming.
All classes from org.sikuli.script are known (pre-imported).
Debug and Settings are also known.

the following undotted methods work on Screen(0):
wait, waitVanish, exists, click, doubleClick, RightClick, hover 
Be aware: FindFailed is not thrown! internally returns null!

and you have undotted:
type, write, paste

If you want to catch exceptions, you have to use the dotted methods.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1757368

Title:
  [1.1.2] IDE: JavaScript support not working --- fixed 1.1.3 2018-03-22
  build#10

Status in Sikuli:
  Fix Released

Bug description:
  Is there sample codes using JavaScript in SikuliX IDE.
  I am interested in the explanation here.
  There is some special support for using SikuliX features from JavaScript which is still experimental and not yet documented.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1757368/+subscriptions


References