"""
======================
@Author:coco
@Time:2019/12/23
@File:窗口切换.py
@software:PyCharm
======================
"""
"""
你怎么要切换到哪儿?
1)有一行为,触发了新的窗口出现
2)获取所有的窗口handles--列表。按照窗口出现的顺序,最新的窗口是最后一个。
3)切换:switch_to.window(窗口的handle)
从一html页面,切换到另外一个html页面
"""
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from</
day34(20191219):web-xpath复杂元素定位:窗口切换(三)
最新推荐文章于 2022-03-19 23:44:51 发布