Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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


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