Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
mugenhere
Posts : 9
Join date : 2009-09-08

selenium.captureEntirePageScreenshot("\\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath] Empty selenium.captureEntirePageScreenshot("\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]

Tue Sep 08, 2009 5:15 pm
Hi,
I'm running Selenium with TestNG using Eclipse and Selenium RC. I used the command:
Code:
selenium.captureEntirePageScreenshot("\\test.png","");
but got the following error: selenium.captureEntirePageScreenshot("\\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath] Affraid

Code:
com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the forum at [url=http://clearspace.openqa.org/]http://clearspace.openqa.org[/url]
for error details from the log window.  The error message is: Component
returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)
[nsILocalFile.initWithPath]
I have already tried the following:

1)Replaced "" (String kwargs parameter) with "background=#CCFFDD"
2)Running Firefox in chrome mode
3)Changed the path to the following values and I'm still getting the error :

"\\test.jpg",
"c:\\test.jpg",

"c:\\test.png",
"c:\\folder1\\test.png", (folder1 exists)
"c:\\folder1\\test.jpg",

4)Tried with -
Code:
selenium.captureScreenshot("\\test.png");
and it works fine but it does not solve my purpose and I dont want to use awt.

Can someone please suggest whats wrong?

Thanks,
Mugen
avatar
mugenhere
Posts : 9
Join date : 2009-09-08

selenium.captureEntirePageScreenshot("\\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath] Empty Re: selenium.captureEntirePageScreenshot("\\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]

Wed Sep 09, 2009 3:21 pm
Hi,

The most surprising thing happened today after I restarted my system. I was reading on the defect here. And I read the example that the developer had mentioned about captureEntirePageScreenshot supporting absolute paths only. So I tried again with absolute path...and it worked!! selenium.captureEntirePageScreenshot("\\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath] Icon_biggrin
I'm not sure what exactly caused it to start working.
Code:
selenium.captureEntirePageScreenshot("c:\\test.png","");
Well, thanks for your help anyway.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum