728x90 셀레니움38 셀레니움 - 브라우저에 엔터 보내기 def enter(driver): actions = ActionChains(driver) actions.send_keys(Keys.RETURN) actions.perform() 2022. 1. 15. 셀레니움 - alert, confirm 끄기, 파이썬 확인) WebDriverWait(driver, 10).until(EC.alert_is_present()) alert = driver.switch_to.alert alert.accept() 취소) WebDriverWait(driver, 10).until(EC.alert_is_present()) alert = driver.switch_to.alert alert.dismiss() 참고: https://dejavuqa.tistory.com/272 Selenium으로 Alert 창 처리하기 Alert 창 처리에 대해 확인해 보겠습니다. 우선 아래와 같이 html 파일을 만들었습니다. Click the button to display a simple alert box. Try it Click the button t.. 2022. 1. 15. 이전 1 2 3 4 다음 728x90