Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by mugenhere on 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:

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

mugenhere

Posts : 9
Join date : 2009-09-08

Back to top Go down

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

Post by mugenhere on 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.
Code:
selenium.captureEntirePageScreenshot("c:\\test.png","");
Well, thanks for your help anyway.

mugenhere

Posts : 9
Join date : 2009-09-08

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum