ERROR: java.io.FileNotFoundException:,The system cannot find the file specified.

569 views
Skip to first unread message

ashwini bhat

unread,
Jun 2, 2012, 3:07:00 AM6/2/12
to Selenium Users
I am trying to use snapsie to capture screenshots upon failure of my
tests being run using junit on selenium rc.

I have downloaded and registered the snapsie.dll. The tests provided
with snapsie download work fine.
Screenshots are captured fine in firefox mode.

When I run my selenium tests with chrome,iexplore though; I get the
following
error:
com.thoughtworks.selenium.SeleniumException: ERROR:
java.io.FileNotFoundException: C:\DOCUME~1\Naveen\LOCALS~1\Temp
\customProfileDir744c0db374294714b774e4b981b61566\screenshots\page-
screenshot-744c0db374294714b774e4b981b61566.png (The system cannot
find the file specified)
at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:
97)
at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:
91)
at
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:
262)
at
com.thoughtworks.selenium.DefaultSelenium.captureEntirePageScreenshotToString(DefaultSelenium.java:
741)
at com.radarplus.puser.User_Preferences
$1.failed(User_Preferences.java:46)
at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:51)
at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:
79)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
71)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:
191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:
184)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
49)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)

Pradeep Siluveru

unread,
Jun 5, 2012, 1:52:59 AM6/5/12
to seleniu...@googlegroups.com
Even i faced this problem..I think Selenium RC will not support screen capture for Chrome and Iexplore check with firefox.
If you use Webdriver concept you will not have any problem..





--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.




--
Thanks&Regards,
S.PradeepKumar

Smita Sinha

unread,
Jun 5, 2012, 4:42:47 AM6/5/12
to seleniu...@googlegroups.com
Selenium RC, capture screenshot is supported only for firefox.
It is not supported for any other browsers.
 
Thanks,
Smita

Reply all
Reply to author
Forward
0 new messages