Python 2.7.12, Selenium 3.4.3, Chrome 버전 62.0.3202.94 (공식 빌드) (32 비트)를 사용합니다.Python Selenium 3.4.3이 시간 제한을 높이지 않고 숙취 상태가 됨
이2 옵션을
from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait as WDW from selenium.webdriver.support import expected_conditions as EC try: WDW(driver, 20).until(EC.presence_of_element_located((By.XPATH, x))) except Exception e: print(e)
try: we = driver.find_element(By.XPATH, x) except Exception e: print(e)
은 구문이나와 문제가있을 x가 존재하지 않을 때 다음 그러나 예외가 발생하지 않습니다 같은 요소의 존재를 확인하는 중에 논리적 인 문제?