org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <input type="submit" value="등록" class="btn btn-inverse pull-right"> is not clickable
자바 셀레니움으로 라이믹스 회원가입 매크로를 만들려고 하는데 값 입력한 후 등록 버튼을 클릭하려고 하는데 자꾸 에러가 났다.
org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <input type="submit" value="등록" class="btn btn-inverse pull-right"> is not clickable at point (887, 857). Other element would receive the click: <ul class="nc_memu guest">...</ul>
이상하네..
구글링을 해보니
org.openqa.selenium.ElementClickInterceptedException: element click intercepted error using Selenium and Java in headless mode
I have a project that I am working on with java and selenium. the test work OK in UI mode. However in headless mode I get this error org.openqa.selenium.ElementClickInterceptedException: element c...
stackoverflow.com
- Adding the argument start-maximized
- ChromeOptions options = new ChromeOptions(); options.addArguments("--headless"); options.addArguments("start-maximized"); WebDriver driver = new ChromeDriver(options);
이런게 있었다.
그래서
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless");
options.addArguments("start-maximized");
driver = new ChromeDriver(options);
했는데 안됐다. 그래서 --headless 를 주석처리했다.
ChromeOptions options = new ChromeOptions();
//options.addArguments("--headless");
options.addArguments("start-maximized");
driver = new ChromeDriver(options);
그러니 되었다..
options.addArguments("start-maximized");
이거를 넣었더니 화면이 꽉찾다.
흠.. 화면이 최대 크기로 되어 있지 않아서 그런가..