Cannot locate elements using headless mode Selenium
问题 I cannot locate elements using headless mode because of this restriction "All users will have to use google Chrome when accessing our sites." This restriction was added by our admins so users could use only Google chrome. My code is @Test(priority = 1) public void setupApplication() throws IOException { /* * open browser (GoogleChrome) and enter user credentials */ ChromeOptions options = new ChromeOptions(); options.addArguments("--window-size=1920,1080"); options.addArguments("--disable-gpu