Questions tagged [webpage-screenshot]

A screen dump, screen capture (or screencap), screenshot (or screen shot), screengrab (or screen grab), or print screen is an image taken by the computer user to record the visible items displayed on the monitor, television, or another visual output device.

Screenshots can be used to demonstrate a program, a particular problem a user might be having, or generally when display output needs to be shown to others or archived. For example, after being emailed a screenshot, a Web page author might be surprised to see how his page looks on a different Web browser and can take corrective action.

241 questions
1
vote
2 answers

Capturing browser specific rendering of a webpage?

Is there any way to capture (image, pdf etc) how a webpage will look like in lets say chrome or I.E? I am guessing there will be different ways to do this for different browsers but is there any API, library or addon that does this?
Max
  • 4,152
  • 4
  • 36
  • 52
1
vote
0 answers

WebDriver randomly closes connection during screenshot

I don't know exactly how to replicate this error, but I do a lot of screenshots of the pages with WebDriver. Sometimes, suddenly I get this exception: org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to…
1
vote
0 answers

How to take a screenshot with Selenium-Chrome ("--headless")

I have created an application using Selenium. The application opens chrome and goes to 3 different websites and captures a screenshot. It all works great. but as soon as add the headless argument so chrome will run in the background the application…
1
vote
1 answer

java.io.IOException: The filename, directory name, or volume label syntax is incorrect

I can not take the screenshot. I am trying to save it in project path with folder name Screenshot I have tried to change the path but still get the same error public void getScreenShot() throws Exception { …
1
vote
0 answers

error when chromedriver try to get screenshot of specific element

I got this error (y + height) is outside of Raste when I try to get a screenshot of an element that need a scroll down to see it all if that's the problem, how I can add scroll down in this code public void getAllInfo() throws IOException { …
1
vote
2 answers

Selenium webdriver for Chrome is not saving screenshots in indicated path

public void afterTestMethod(TestContext testContext) throws Exception { if (testContext.getTestException() == null) { return; } File screenshot = ((TakesScreenshot) webDriver).getScreenshotAs(OutputType.FILE); String testName…
1
vote
3 answers

Capturing application screen with JavaScript

Is it possible to capture the entire window as screenshot using JavaScript? The application might contain many iframes and div's where content are loaded asynchronously. I have explored canvas2image but it works on an html element, using the same…
1
vote
1 answer

opening URL from a file and taking screenshots in UiPath

It's a UI path sequence. I am trying to read some URLs from an Excel file. Launch browser Go to URL from file Take Screenshot Save screenshot I am unable to use the "take Screenshot" activity. Unsure, how can I take the screenshot and save it as a…
Firaun
  • 369
  • 1
  • 5
  • 21
1
vote
0 answers

Struggling to take a React webpage screenshot

I want to take a screenshot of a React application webpage which opens at the following url when I run my application locally : http://localhost:3400/someapi/email I have unsuccessfully tried to take the screenshot with phantom…
Wenger
  • 157
  • 1
  • 9
1
vote
1 answer

Automatical web-screenshot via taskscheduleR

I promise I'm not an expert of sites policy and that all the information that I'll eventually get will be used for didactical studies, as I'm a student. My purpose is to get a sequence of images of a web page (on which i will apply techniques of…
1
vote
0 answers

How to take screenshot of an external webpage's iFrame using PHP?

As I am inside a corporate network, I do not want to use any third party website to take screenshot, so I wanted to take screenshot using program(PHP). I wanted to take a screenshot of a D3 C3 chart which are generated under iFrame. I tried…
Ranjit
  • 135
  • 7
1
vote
1 answer

Screenshots are not capturing in Selenium

Please find the code below i am using ExtentReport 3.0.6 and selenium 3.4.0. Screenshots are not saving but i am not getting any exceptions. It's not saving any screenshots. I am not sure why it's happening it was working for me couple of days…
1
vote
1 answer

Does changing the user-agent setting in PhantomJS change the perspective of the screen capture/screenshot?

I am relatively new to using PhantomJS, and would like to take screenshots of our website to be diffd later on. What I am curious to know is whether or not changing the user-agent setting will affect the perspective of the screenshot (i.e. will the…
sramzan
  • 96
  • 8
1
vote
1 answer

Get screenshot of web page in JCEF browser

Problem: I am using JCEF(java-Chromium Embedded Framework) in a java project, now I want to get the screenshot of web page in CEF browser, but I didn't find API for this. Is there some way to do that? Thanks so much!
Bode
  • 61
  • 6
1
vote
2 answers

ExternalException: A generic error occurred in GDI+

I am using Selenium WebDriver in C# and I am trying to dynamically create a folder and save screenshots of failing tests to it. Here I am running the group of test cases (Test Suite of 66 test cases). After running the test suite I found few failed…
mitikiri
  • 9
  • 2