How can i launch Sikuli from a javascript script that previously uses slenium API

Asked by Sébastien on 2019-12-02


i would like to automate a scenario mixinign up webdriver API usage in Javascript and Sikuli.
I use a Page Object Pattern for Webdriver script provided in Javascript hence i would like to know if it is possible to wirte sikulie scripts in javascript directly ?

Thanks for your help.

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

What is your current Javascript environment?

What Selenium package are you using?

Sébastien (voldor) said : #2

i'm using leadfoot (latest version 2.2.x) as the binding to webdriver APIs, and im' using Jasmine and/or InternJS as my test framewiork to launch my tests scripts.

From those test scripts i would like to pilot either a desktop application and a browser.

My Page Objects are provided in Javascript for my Web Application.

I would like to launch Sikuli commands from javascript (from the same script that is piloting my browser)*

I hope this is clearer now

RaiMan (raimund-hocke) said : #3

I have to admit, that I am not very familiar with the mentioned tool-sets in the Javascript world.

After some short exams of the tools, it seems that your environment is node.js based.

If this is true, then it is not possible to access the Java based SikuliX API directly from within your scripts.

I know, that there are some implementations, that build a bridge between node based scripts and Sikuli(X). I do not have an actual overview, what is going on there, but asking google about "node.js sikuli" or "node sikulix" might be a good start.

One level deeper you might try with a node-java bridge, to access the SikuliX Java API.

Hope it helps.

Can you help with this problem?

Provide an answer of your own, or ask Sébastien for more information if necessary.

To post a message you must log in.