Skip to main content
Fixed typo & removed irrelevant tag ( not a ashot-specific question ), added missing tag.
Source Link
iamdanchiv
  • 4.1k
  • 4
  • 40
  • 43

How to take a screenshot of the entire wenweb page (full-page screenshot), not only partial (top-to-bottom) using Selenium WebDriver?

My code: (Java bindings)

System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver"); WebDriver driver = new ChromeDriver(); driver.get("http://google.com"); File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

Any ideas on how to tackle this?

How to take a screenshot of the entire wen page (full-page screenshot), not only partial (top-to-bottom) using Selenium WebDriver?

My code: (Java bindings)

System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver"); WebDriver driver = new ChromeDriver(); driver.get("http://google.com"); File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

Any ideas on how to tackle this?

How to take a screenshot of the entire web page (full-page screenshot), not only partial (top-to-bottom) using Selenium WebDriver?

My code: (Java bindings)

System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver"); WebDriver driver = new ChromeDriver(); driver.get("http://google.com"); File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

Any ideas on how to tackle this?

Some small formatting was in order as the question was gaining popularity. Also removed irrelevant tag.
Source Link
iamdanchiv
  • 4.1k
  • 4
  • 40
  • 43

How to maketake a screenshot for fullof the entire webwen page (full-page screenshot), not only partial from the top(top-to-bottom) using Selenium WebDriver?

My Selenium WebDriver java code is as below:My code: (Java bindings)

System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver"); WebDriver driver = new ChromeDriver(); driver.get("http://google.com"); File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

Any ideas on how to tackle this?

How to make screenshot for full entire web page, not only partial from the top using Selenium WebDriver?

My Selenium WebDriver java code is as below:

System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver"); WebDriver driver = new ChromeDriver(); driver.get("http://google.com"); File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

Any ideas?

How to take a screenshot of the entire wen page (full-page screenshot), not only partial (top-to-bottom) using Selenium WebDriver?

My code: (Java bindings)

System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver"); WebDriver driver = new ChromeDriver(); driver.get("http://google.com"); File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

Any ideas on how to tackle this?

Corrected question heading, indented code trials, tag edits
Source Link
undetected Selenium
  • 194.5k
  • 44
  • 304
  • 387

How to get screenshot of full webpage using Selenium with javaand Java?

How to make screenshot for full entire web page, not only partial from the top using Selenium WebDriver?

myMy Selenium WDWebDriver java code is as below: System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver");

 System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver"); WebDriver driver = new ChromeDriver();  driver.get("http://google.com");  File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);    FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

anyAny ideas?

How to get screenshot of full webpage using Selenium with java?

How to make screenshot for full entire web page, not only partial from the top using Selenium WebDriver?

my Selenium WD java code is as below: System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver");

 WebDriver driver = new ChromeDriver();  driver.get("http://google.com");  File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);    FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

any ideas?

How to get screenshot of full webpage using Selenium and Java?

How to make screenshot for full entire web page, not only partial from the top using Selenium WebDriver?

My Selenium WebDriver java code is as below:

System.setProperty("webdriver.chrome.driver","/home/alex/Downloads/chromedriver_linux64/chromedriver"); WebDriver driver = new ChromeDriver(); driver.get("http://google.com"); File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scrFile, new File(RESULT_FILENAME)); 

Any ideas?

added 35 characters in body; edited tags; edited title
Source Link
Ripon Al Wasim
  • 38k
  • 42
  • 159
  • 180
Loading
Source Link
Loading