Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
gchandrasekaran82
Regular Participant
Regular 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 Empty 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]
}
avatar
Lavanya_K
Posts : 7
Join date : 2011-04-20

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 Empty 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| |
selenium.testing07
selenium.testing07
Regular Participant
Regular Participant
Posts : 26
Join date : 2010-11-20

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 Empty 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


Last edited by selenium.testing07 on Thu Jun 09, 2011 12:32 pm; edited 1 time in total
avatar
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

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 Empty 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

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 Empty 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

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