sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12114
Re: [Question #204164]: Not able to use Key.TAB when using Cucumber and jruby
Question #204164 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204164
Description changed to:
Hello.
I am using cucumber and jruby to drive the Sikuli.
Basically i have opened a webpage with a flash player and i am able to
click on the play button.
But, once play has been started i need to use TAB key to get the control
to the next button using keyboard. I am not able to find the Java class
to be imported to achive the KEY.TAB which i am able to do successfully
using Sikuli IDE but not using jruby.
Kindly please let me know which class i should be using and also let me
know a basic code snippet for the same.
My env.rb looks like this:
require 'java'
require 'sikuli'
require 'watir-webdriver'
require 'capybara'
require 'capybara/cucumber'
require 'selenium-webdriver'
require 'rspec'
java_import "org.sikuli.script.SikuliScript"
java_import "org.sikuli.script.Region"
java_import "org.sikuli.script.Key"
java_import "org.sikuli.script.Screen"
java_import "org.sikuli.script.App"
Thank you all...
Shiva
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.