← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #226291]: integrating selenium with sikuli ide

 

Question #226291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/226291

RiSol posted a new comment:
I succeeded to run Selenium and Sikuli code using Sikuli IDE 1.0.0
based on this detailed conversation and what is my configuration.

in sikuli-ide.cmd:

:JAVA_OK 
PATH=%SIKULIX_HOME%libs;%JAVA%;%PATH%
set SELENIUM_HOME=C:\selenium-2.33.0\
echo +++ trying to start Sikuli IDE with %JAVA%
"%JAVA%\java.exe" %PARMS% -cp "%SELENIUM_HOME%libs\*;%SELENIUM_HOME%selenium-java-2.33.0.jar;%SIKULIX_HOME%sikuli-script.jar;%SIKULIX_HOME%sikuli-ide.jar" org.sikuli.ide.SikuliIDE %SPARMS% %SIKULI_USERPARMS%

in sikuli ide:

import org.openqa.selenium.firefox.FirefoxDriver as FF
import java.util.concurrent.TimeUnit as TimeUnit
import org.openqa.selenium.By as By

driver = FF()
driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS)
baseUrl = "http://XXXX:8080/";
driver.get(baseUrl + "/XXX-app/")
driver.findElement(By.id("XXXX")).click()
click("Save File.png")
click("OK.png")

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.