selenium switch to iframe to locate elements
问题 selenium import webdriver from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.by import By driver = webdriver.Chrome() driver.maximize_window() driver.get("website") driver.find_element_by_id("fld-username").send_keys("username") driver.find_element_by_id("fld-password").send_keys("password") driver.find_element_by_id("btn-inloggen").click() driver.find_element_by_css_selector("div.block