sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26364
[Question #250162]: JRuby and Region throwing Java package org.sikuli.script does not have a method Region
New question #250162 on Sikuli:
https://answers.launchpad.net/sikuli/+question/250162
I created a new project in JRuby, using SikuliX 1.1 - I am using the sikulixapi.jar in my project.
My project can call the Screen methods fine, it's only the Region methods I'm having issue with.
My problem, is when I want to make use of the Region class. When I try to do this:
Sikuli=Java::org.sikuli.script
Sikuli::Region.new(0,0,1024,768)
I get this response:
ArgumentError: Java package `org.sikuli.script' does not have a method `Region'
When I write Ruby code in the SikuliX 1.1 IDE to basically do
region = Region(0,0,1024,768)
region.text()
it works fine. Am I not setting up Region correctly?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.