ajax로 동적 컨텐트를로드 한 다음 특정 시간 (고정되지 않은) 후에 리디렉션하는 페이지가 있습니다. Selenium Webdriver가 리디렉션 된 후 다른 링크로 바로 연결될 때까지 기다리는 것을 어떻게 강제 할 수 있습니까?페이지 리디렉션 대기 Selenium WebDriver (Python)
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
driver = webdriver.Chrome();
driver.get("http://www.website.com/wait.php")
예상 URL을 알고 있으면 a에서 'driver.current_url'을 사용할 수 있습니다. while 루프. –
웨이터와 URL이 바뀔 때까지 기다릴 수 있습니다. –