New question #293538 on Sikuli:
https://answers.launchpad.net/sikuli/+question/293538
Note (Language => Ruby(jruby))
I used sikuli for firefox proxy authentication. I crop the username, password
and ok button image using sikuli IDE and use these image in my (RUBY) code. It
work fine. But when i take the screenshot of the popup and than crop the
username, password and ok button image manually through photo editor it gives
the following error. Why it is happen, i saved the image in PNG format. Is
sikuli IDE do something with the crop image while saving
I want to get answer of this problem because I do more using sikuli and I only
have screenshots of big images through which I crop multiple images and use it
in code
2.2.0 :048 > screen.click("#{Rails.root}/public/auth_image/password_img.png")
Sikuli::ImageNotFound: The image
'/home/engintech/Ruby/sikuli/public/auth_image/username_img.png' did not match
in this region.
from
/home/engintech/Ruby/sikuli/vendor/cache/jruby/2.2.0/gems/sikuli-0.3.0/lib/sikuli/region.rb:81:in
`raise_exception'
from
/home/engintech/Ruby/sikuli/vendor/cache/jruby/2.2.0/gems/sikuli-0.3.0/lib/sikuli/clickable.rb:188:in
`click_image'
from
/home/engintech/Ruby/sikuli/vendor/cache/jruby/2.2.0/gems/sikuli-0.3.0/lib/sikuli/clickable.rb:21:in
`click'
from (irb):48:in `<eval>'
from org/jruby/RubyKernel.java:978:in `eval'
from org/jruby/RubyKernel.java:1291:in `loop'
from org/jruby/RubyKernel.java:1098:in `catch'
from org/jruby/RubyKernel.java:1098:in `catch'
from
/home/engintech/Ruby/sikuli/vendor/cache/jruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/console.rb:110:in
`start'
from
/home/engintech/Ruby/sikuli/vendor/cache/jruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/console.rb:9:in
`start'
from
/home/engintech/Ruby/sikuli/vendor/cache/jruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:68:in
`console'
from
/home/engintech/Ruby/sikuli/vendor/cache/jruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in
`run_command!'
from
/home/engintech/Ruby/sikuli/vendor/cache/jruby/2.2.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in
`<top>'
from org/jruby/RubyKernel.java:939:in `require'
from bin/rails:9:in `<top>'
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp