- mugenhere
- Posts : 9
Join date : 2009-09-08
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:
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 -
Can someone please suggest whats wrong?
Thanks,
Mugen
I'm running Selenium with TestNG using Eclipse and Selenium RC. I used the command:
- Code:
selenium.captureEntirePageScreenshot("\\test.png","");
- 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]
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");
Can someone please suggest whats wrong?
Thanks,
Mugen
- mugenhere
- Posts : 9
Join date : 2009-09-08
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!!
I'm not sure what exactly caused it to start working.
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!!
I'm not sure what exactly caused it to start working.
- Code:
selenium.captureEntirePageScreenshot("c:\\test.png","");
- For every change in the code of selenium RC, Is that necesary to compile the selenium RC code every time.
- Selenium-Servr_2_5_0.jar throws error in RemoteControlConfiguration
- Exported Selenium Script Throws Exception
- com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure.
- [SOLVED] Switching to next test case in case of failure & using a .bat file for multiple tests
Permissions in this forum:
You cannot reply to topics in this forum