#1.获取当前页面(跳转过来的页面)句柄:
self.driver.window_handles[-1]
#2.切换窗口:
self.driver.switch_to.window(self.driver.window_handles[-1])
#3.selenium定位:
self.driver.find_element(By.XPATH, "//div[@id='root-gzc-workplatform']//ul/li[2]").click()
10-21
4662
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-27