Sikuli and Selenium over JAVA

Asked by Guru

Hey people / developers,

In java, can i use selenium in combination with sikuli?
This would be highly appreciated since many are eager to do this!

may be like this:

selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.com/");
 selenium.start();
 selenium.open("http://www.google.com/");
 selenium.waitForPageToLoad("30000");
        selenium.windowMaximize();

 selenium.windowFocus();
 sikuli.click("image/google.png", 0);

Prsently this is not working (Exception in thread "main" java.lang.NullPointerException) is there any way that this can work?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1
Revision history for this message
Andrzej Wiech (andrjus-w) said :
#2

I am actually doing is, you probably didn't create Screen object, have a look at the doc given by RaiMan.

Can you help with this problem?

Provide an answer of your own, or ask Guru for more information if necessary.

To post a message you must log in.