我正在使用selenium和python3。我想在我的脚本中使用第n- (1n)循环遍历一个子id
for n in self.driver_web_browser.find_element_by_css_selector('#ctl00_ContentPlaceHolder1对于子级中的n>选项:n- self.driver_web_browser.find_elements_by_css_selector('#ctl00_ContentPlaceHolde
在我的场景中,我需要单击子菜单,该子菜单只有在父菜单处于“鼠标超过”状态时才可见:SubMenu of MainMenu (span)SubMEnu of SubMenu of SubMenu of MainMenu (span)
我需要点击第四个子菜单,但它只能在第一个菜单上点击,鼠标在第二个,然后鼠标在第三个子菜单。我尝试过使用Selenium WebDriver