# 切换到
webview time.sleep(2)
print(driver.contexts)
driver.switch_to.context('WEBVIEW_com.tencent.mm:tools')
来源: https://www.cnblogs.com/yoyoketang/p/9015976.html