I'm having trouble. After clicking on the button, a window appears on the page. A window pops up on top of the page. Not sure, most likely it's JS. The body of the pop-up window contains menu bars. Each line has a dropdown (submenu). It is necessary by the method find_element_by_xpath or find_element_by_css_selector to find the object and click on it, then in the dropdown that opens, click on another object. Falls off at the last step of the script. What am I doing wrong? assist me please? :(
driver = webdriver.Chrome('/usr/local/bin/chromedriver') driver.implicitly_wait(10) driver.get("my.webpage") login = driver.find_element_by_name("login") login.send_keys("user") password = driver.find_element_by_name("passwd") password.send_keys("passwd") driver.find_element_by_xpath('/html/body/div/div/section/div/form/div[3]/button').click() open_wizard = driver.find_element_by_xpath('/html/body/div/div/header/div[2]/div/ul[1]/li[1]/button') open_wizard.click() wizard_window = driver.find_element_by_css_selector('html body.no-scroll div.ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable.ui-resizable')