#这个页面会自动恢复之前的条件 element = d.find_element_by_xpath("//a[text()='" + serverName + "']") element.click() time.sleep(2)
#跳到Tab1 d.switch_to_window(d.window_handles[1]) element = d.find_element_by_xpath("//input[@name='reSendDelayShopIds']") element.click() element.clear() element.send_keys("ALL")
element = d.find_element_by_xpath("//form[@action='changeresenddelayshopids']/input[@type='submit']") element.click() time.sleep(2)
#关掉当前tab页 d.close()
#跳回Tab0 d.switch_to_window(d.window_handles[0])
|