selenium.captureEntirePageScreenshot("\\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]
Page 1 of 1 • Share •
selenium.captureEntirePageScreenshot("\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]
Hi,
I'm running Selenium with TestNG using Eclipse and Selenium RC. I used the command:
but got the following error:
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 -
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","");
but got the following error:
- 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");
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]
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.
Well, thanks for your help anyway.
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","");
Well, thanks for your help anyway.
mugenhere- Posts: 9
Join date: 2009-09-08
Similar topics» Joke time " Buwanang dalaw "
» why my ID- Can"t log in..
» test 12123
» 6300 and 3110c security test failed
» MOTOROLA LOCK & SECURITY CODE READER"Tested"
» why my ID- Can"t log in..
» test 12123
» 6300 and 3110c security test failed
» MOTOROLA LOCK & SECURITY CODE READER"Tested"
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
» sample webdriver code for php users
» which standalone server to use
» Dynamic Drop Down Selection
» It is possible to find list of all URL's exist in any web page in selenium ide
» It is possible to compare 2 same images in selenium IDE.
» how to compare 2 ULR's which is exist in same web page (View page source).
» Web Driver: Unable to click a link present inside the frame of a frameset
» Help me to get dynamicaly loaded options of dropdown in Selenium RC -Junit test case