Automating web application testing. I use Python + Selenium. The iFrame popup window contains a drop-down list. It is necessary to click on the item and click the button further. Switched to the iFrame window. I look for an element on xpath. I get the error: WebDriverException: Message: unknown error: Element
driver.switch_to.frame(driver.find_element_by_xpath('/html/body/div[2]/div[2]/iframe')) wizard_window = driver.find_element_by_xpath('/html/body/div[1]/table/tr[1]/td[1]') wizard_window.click() If you remove the last line of code, the rest (including opening a window with a frame and searching for an element by xpath) is performed. What is the mistake?