| Line 19... |
Line 19... |
| 19 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
19 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
| 20 |
import org.apache.commons.lang.StringUtils;
|
20 |
import org.apache.commons.lang.StringUtils;
|
| 21 |
import org.apache.logging.log4j.LogManager;
|
21 |
import org.apache.logging.log4j.LogManager;
|
| 22 |
import org.apache.logging.log4j.Logger;
|
22 |
import org.apache.logging.log4j.Logger;
|
| 23 |
import org.apache.solr.common.util.Hash;
|
23 |
import org.apache.solr.common.util.Hash;
|
| - |
|
24 |
import org.openqa.selenium.Dimension;
|
| 24 |
import org.openqa.selenium.OutputType;
|
25 |
import org.openqa.selenium.OutputType;
|
| 25 |
import org.openqa.selenium.TakesScreenshot;
|
26 |
import org.openqa.selenium.TakesScreenshot;
|
| 26 |
import org.openqa.selenium.WebDriver;
|
27 |
import org.openqa.selenium.WebDriver;
|
| 27 |
import org.openqa.selenium.chrome.ChromeDriver;
|
28 |
import org.openqa.selenium.chrome.ChromeDriver;
|
| 28 |
import org.openqa.selenium.chrome.ChromeOptions;
|
29 |
import org.openqa.selenium.chrome.ChromeOptions;
|
| Line 717... |
Line 718... |
| 717 |
options.addArguments("start-maximized");
|
718 |
options.addArguments("start-maximized");
|
| 718 |
options.addArguments("disable-infobars");
|
719 |
options.addArguments("disable-infobars");
|
| 719 |
options.addArguments("--disable-extensions");
|
720 |
options.addArguments("--disable-extensions");
|
| 720 |
|
721 |
|
| 721 |
WebDriver driver = new ChromeDriver(options);
|
722 |
WebDriver driver = new ChromeDriver(options);
|
| - |
|
723 |
driver.manage().window().setSize(new Dimension(1600, 600));
|
| 722 |
driver.manage().window().maximize();
|
724 |
driver.manage().window().maximize();
|
| 723 |
// Deleting all the cookies
|
725 |
// Deleting all the cookies
|
| 724 |
driver.manage().deleteAllCookies();
|
726 |
driver.manage().deleteAllCookies();
|
| 725 |
// Specifiying pageLoadTimeout and Implicit wait
|
727 |
// Specifiying pageLoadTimeout and Implicit wait
|
| 726 |
driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);
|
728 |
driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);
|