← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #163012]: Sikuli using remotewebdriver

 

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

    Status: Needs information => Open

subhabrata pal gave more information on the question:
Hi,

"It seems you are using relative image filenames: imgs/Advancedsear.png"
Thats correct.

"So are you sure in your environment this directory imgs can be found
based on your specification and the current working directory in the
moment the Sikuli feature (a type() in this case) is fired from inside
webdriver code?"

I am not sure; I have placed the imgae file in the same location in the
remote system as in the caller system. I have used also the absolute
path(C:\ECPROJECT\RPM\imgs\Advancedsear.png) - but same result. I may be
wrong. I am not sure how to give the path for remote system.


Following is the code:
public class selwebdriver {
	
@Test
public void webdrivertest() throws Exception {
DesiredCapabilities capability = DesiredCapabilities.internetExplorer();
WebDriver driver = new RemoteWebDriver(new URL("http://10.99.74.56:5555/wd/hub";), capability); 
String baseUrl = "www.gmail.com";
Selenium selenium = new WebDriverBackedSelenium(driver, baseUrl);
System.out.println("here");
selenium.open("http://www.google.com";);
Screen sikuli = new Screen();
		
try{
Thread.sleep(5000);
sikuli.type("imgs/Advancedsear.png", "Cheese", 0);
}catch(FindFailed e){
e.printStackTrace();
}		
driver.quit();
}

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