← Back to team overview

sikuli-driver team mailing list archive

[Question #224833]: Is there any procedure to use images from a shared directory

 

New question #224833 on Sikuli:
https://answers.launchpad.net/sikuli/+question/224833

Hi,

Is there any procedure to use images from a shared directory ?

I want to run a script using sikuli with Selenium Remote WebDriver.
To run the script in a remote machine I have copied the images in a shared directory and trying to access from shared directory
The example script is as follows:

Screen s = new Screen();
				
		try{
			s.type("\\192.168.173.20\\My Sharing\\Web\\Username.png", "moderator");
                      }
               catch(FindFailed e){
			e.printStackTrace();
		      }
I am getting the following error:

[error] \192.168.173.20\My Sharing\Web\Username.png looks like a file, but can't be found on the disk. Assume it's text.
[info] Text Recognizer inited.
[error] \192.168.173.20\My Sharing\Web\Username.png looks like a file, but can't be found on the disk. Assume it's text.
[error] \192.168.173.20\My Sharing\Web\Username.png looks like a file, but can't be found on the disk. Assume it's text.
FindFailed: can not find \192.168.173.20\My Sharing\Web\Username.png on the screen.
Line ?, in File ?
	at org.sikuli.script.Region.handleFindFailed(Region.java:421)
	at org.sikuli.script.Region.wait(Region.java:512)
	at org.sikuli.script.Region.find(Region.java:382)
	at org.sikuli.script.Region.getLocationFromPSRML(Region.java:1134)
	at org.sikuli.script.Region.click(Region.java:607)
	at org.sikuli.script.Region.type(Region.java:803)
	at org.sikuli.script.Region.type(Region.java:798)
	at moderator163.searchTest(moderator163.java:58)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
	at org.testng.TestRunner.privateRun(TestRunner.java:767)
	at org.testng.TestRunner.run(TestRunner.java:617)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
	at org.testng.SuiteRunner.run(SuiteRunner.java:240)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
	at org.testng.TestNG.run(TestNG.java:1030)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
===== Invoked methods

Thanks in Advance

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