Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class App {
- public static void main(String[] args){
- String driver_home = "your driver home";
- ChromeOptions chrome_options = new ChromeOptions();
- chrome_options.addArguments("--window-size=1920,1080");
- chrome_options.addArguments("--headless=new"); // when chromedriver > 108.x.x.x
- //chrome_options.addArguments("--headless=chrome"); when chromedriver <= 108.x.x.x
- //..
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement