--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPS9dcazpQW2e3bqtRD%3DaMjS42yb6SdkU5h45bsfuuHAdpkS-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
What's the error in Chrome?
On Tue, Dec 20, 2016 at 8:58 PM, ankit shah <shahan...@gmail.com> wrote:
AnkitPlease help me out of this.I found in the latest version of Firefox , it won't working so as in Chrome.Hi,I want to capture the entire page screenshot using chrome/Firefox browser.Note: I am able to capture the visible part of screen.Regards,
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPS9dcazpQW2e3bqtRD%3DaMjS42yb6SdkU5h45bsfuuHAdpkS-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADrmqWUzidnC80PLDLVr79Fgkc3FLs5kDkud3UhcGi0bk-fi7g%40mail.gmail.com.
WebDriver driver = new FirefoxDriver();
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("window.scrollBy(0,250)", "");
I did the same for one task-working model.
This is one of the solution but not the final.
There is no any error. But it only captures the visible part.I want the complete page screenshot.
Consider an example there is website called "http://www.bbc.com/" so once i open this and capture it's screenshot. It will capture only the above part of screen.
On Wed, Dec 21, 2016 at 10:55 AM, Ripon Al Wasim <ripona...@gmail.com> wrote:
What's the error in Chrome?On Tue, Dec 20, 2016 at 8:58 PM, ankit shah <shahan...@gmail.com> wrote:--AnkitPlease help me out of this.I found in the latest version of Firefox , it won't working so as in Chrome.Hi,I want to capture the entire page screenshot using chrome/Firefox browser.Note: I am able to capture the visible part of screen.Regards,
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPS9dcazpQW2e3bqtRD%3DaMjS42yb6SdkU5h45bsfuuHAdpkS-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADrmqWUzidnC80PLDLVr79Fgkc3FLs5kDkud3UhcGi0bk-fi7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPS9dcY1q8BLMjvBAriL2B2ZpjymDgOxA3AWGmE5Tywmw1Nomg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPS9dcY1q8BLMjvBAriL2B2ZpjymDgOxA3AWGmE5Tywmw1Nomg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADuUwCAMj4J1E1pKT4Nebk5OGwQ2VTH19ngrRL4juv3gJR%2BPZg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADuUwCAMj4J1E1pKT4Nebk5OGwQ2VTH19ngrRL4juv3gJR%2BPZg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPS9dcbrkY2%3DyBYQJaaQyvtz2YwOVjPstA%3DHXn0vF1rSQikvtg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPS9dcbrkY2%3DyBYQJaaQyvtz2YwOVjPstA%3DHXn0vF1rSQikvtg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADuUwCB%3DzLXfztWpyMy4%3DdhSkEE4Pw%3DSp5P9jbkxWhJR4Ytnng%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7015dd36-20e0-463e-9716-a0c629ed50b1%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4b81efc2-259b-44e0-88fa-8fa37f061249%40googlegroups.com.
Rectangle captureSize = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
Robot robot = new Robot();
BufferedImage bufferedImage = robot.createScreenCapture(captureSize);
WebDriver webDriver = keywordDriverManager.getWebDriver();
// As of Selenium v2.40 only need to augment HtmlUnitDriver as it yet implements TakesScreenshot
if (webDriver instanceof HtmlUnitDriver) {
webDriver = new Augmenter().augment(keywordDriverManager.getWebDriver());
}
File screenShot = ((TakesScreenshot) webDriver).getScreenshotAs(OutputType.FILE);
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
WebDriver Screenshot utility
aShot takes a screenshot in three simple steps:
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/489895fa-ec67-4cf6-adff-0a85035d289a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d3ab8a76-1c3d-49b4-8e67-91f30bde528c%40googlegroups.com.
[TestMethod]
public void FullWebPageScreenShotCapture()
{
IWebDriver driver = new ChromeDriver();
driver.Manage().Window.Maximize();
driver.Url = "https://www.selenium.dev/";
// ((ITakesScreenshot)driver).GetScreenshot().SaveAsFile("oldFirefox.png");
VerticalCombineDecorator vcd = new VerticalCombineDecorator(new ScreenshotMaker().RemoveScrollBarsWhileShooting());
driver.TakeScreenshot(vcd).ToMagickImage().ToBitmap().Save("newChrome.png");
driver.Quit();
}