셀레늄 그리드를 통해 원격 드라이버를 초기화 할 때 IE가 각 세션을 깨끗하게 시작할 수 있도록하려고합니다. 이Selenium - RemoteWebDriver를 초기화 할 때 InternetExplorerOptions() 사용
DesiredCapabilities caps = null;
caps = DesiredCapabilities.internetExplorer();
caps.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);
WebDriver driver = new RemoteWebDriver(new URL("http://10.10.22.126:5555/wd/hub"), caps);
는 IE는 문제가 발생 이전 테스트에서 쿠키와 각각의 새로운 테스트를 시작하고, 작동하지 않습니다. 나는이
InternetExplorerOptions ieOptions = new InternetExplorerOptions()
.destructivelyEnsureCleanSession();
바와 같이 here을 지시 구현하기 위해 노력하고 있어요,하지만 난 원격 드라이버로 대신 로컬이 사용하는 방법을 알아낼 수 없습니다. 감사!
:
이InternetExplorerOptions
클래스로이 기능에 대한 상수를 정의 작동하지? – nullpointer