Advertisement
dereksir

Untitled

Jan 17th, 2024 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. public class App {
  2.  
  3.     public static void main(String[] args){
  4.        
  5.         String driver_home = "your driver home";
  6.  
  7.         ChromeOptions chrome_options = new ChromeOptions();
  8.         chrome_options.addArguments("--window-size=1920,1080");
  9.         chrome_options.addArguments("--headless=new"); // when chromedriver > 108.x.x.x
  10.         //chrome_options.addArguments("--headless=chrome"); when chromedriver <= 108.x.x.x
  11.        
  12.         //..
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement