Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by gchandrasekaran82 on 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]
}

gchandrasekaran82
Regular Participant
Regular Participant

Posts : 33
Join date : 2011-02-16

Back to top Go down

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

Post by Lavanya_K on Sat May 07, 2011 10:35 pm

use the correct folder path

|captureEntirePageScreenshot |
C:\Users\chandrasekaran\Desktop\foldername\test.jpg| |

Lavanya_K

Posts : 7
Join date : 2011-04-20

Back to top Go down

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

Post by selenium.testing07 on 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


Last edited by selenium.testing07 on Thu Jun 09, 2011 12:32 pm; edited 1 time in total

selenium.testing07
Regular Participant
Regular Participant

Posts : 26
Join date : 2010-11-20

Back to top Go down

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

Post by freesky on Thu Jun 09, 2011 11:10 am

maybe the file path is wrong

freesky
Amateur
Amateur

Posts : 72
Join date : 2011-04-13

Back to top Go down

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

Post by Sponsored content Today at 7:30 pm


Sponsored content


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