- gchandrasekaran82Regular Participant
- Posts : 33
Join date : 2011-02-16
How to take the screen shot? when i set a kwargs, it is showing error... when i not set kwargs it is coming black color as background
Sat Feb 19, 2011 12:23 pm
When i not set kwargs, png coming as a black color background so black color text are not visible in screen shot..
|captureEntirePageScreenshot |
C:\Users\chandrasekaran\Desktop\snapsie-0.2\test.jpg| |
When i use this command it is not working.. please check the format whether it is correct or not?
|captureEntirePageScreenshot |
C:\Users\chandrasekaran\Desktop\snapsie-0.2\test.jpg,"background=#CCFFDD"
||
[error] Unexpected Exception: QueryInterface -> function
QueryInterface() {
[native code]
}, message -> Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIFileOutputStream.init], result -> 2147500037,
name -> NS_ERROR_FAILURE, filename ->
chrome://selenium-ide/content/selenium/scripts/selenium-api.js,
lineNumber -> 2927, columnNumber -> 0, location -> JS frame ::
chrome://selenium-ide/content/selenium/scripts/selenium-api.js ::
anonymous :: line 2927, inner -> null, data -> null, initialize
-> function initialize() {
[native code]
}
|captureEntirePageScreenshot |
C:\Users\chandrasekaran\Desktop\snapsie-0.2\test.jpg| |
When i use this command it is not working.. please check the format whether it is correct or not?
|captureEntirePageScreenshot |
C:\Users\chandrasekaran\Desktop\snapsie-0.2\test.jpg,"background=#CCFFDD"
||
[error] Unexpected Exception: QueryInterface -> function
QueryInterface() {
[native code]
}, message -> Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIFileOutputStream.init], result -> 2147500037,
name -> NS_ERROR_FAILURE, filename ->
chrome://selenium-ide/content/selenium/scripts/selenium-api.js,
lineNumber -> 2927, columnNumber -> 0, location -> JS frame ::
chrome://selenium-ide/content/selenium/scripts/selenium-api.js ::
anonymous :: line 2927, inner -> null, data -> null, initialize
-> function initialize() {
[native code]
}
- Lavanya_K
- Posts : 7
Join date : 2011-04-20
Re: How to take the screen shot? when i set a kwargs, it is showing error... when i not set kwargs it is coming black color as background
Sat May 07, 2011 10:35 pm
use the correct folder path
|captureEntirePageScreenshot |
C:\Users\chandrasekaran\Desktop\foldername\test.jpg| |
|captureEntirePageScreenshot |
C:\Users\chandrasekaran\Desktop\foldername\test.jpg| |
- selenium.testing07Regular Participant
- Posts : 26
Join date : 2010-11-20
Re: How to take the screen shot? when i set a kwargs, it is showing error... when i not set kwargs it is coming black color as background
Tue May 10, 2011 6:12 pm
You can also use in the following way too:
Command is :capture_screenshot
Captured screen shots name will be: test.png
$sel->capture_screenshot('C:\Users\abc\Desktop\test.png');
This is in Perl you can try in another too.
Cheers
Command is :capture_screenshot
Captured screen shots name will be: test.png
$sel->capture_screenshot('C:\Users\abc\Desktop\test.png');
This is in Perl you can try in another too.
Cheers
- freeskyAmateur
- Posts : 72
Join date : 2011-04-13
Re: How to take the screen shot? when i set a kwargs, it is showing error... when i not set kwargs it is coming black color as background
Thu Jun 09, 2011 11:10 am
maybe the file path is wrong
- Sponsored content
Permissions in this forum:
You cannot reply to topics in this forum