惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
小众软件
小众软件
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
MyScale Blog
MyScale Blog

Android - 标签 - cywhat's blog

搭建IOS和Android性能监控工具 Error taking device screenshot: null
App跟web定位元素页面相互切换
cywhat · 2018-10-12 · via Android - 标签 - cywhat's blog

很多QA在做UI自动化或者App自动化的时候,会遇到在web页面要抓取App模式的元素,或者是在App要抓取H5页面的元素,从网上整理了一些方法,不一定能解决,但是试一下也未尝不可,如果解决了就记得关注一波咯!!!python噢~~~

self.driver.switch_to.context()
self.driver.switch_to.context('WEBVIEW_1')app --> web
self.driver.switch_to.context('NATIVE_APP')web --> app

如果是从App转到web 选择WEBVIEW_1, 如果web转到App 选择 NATIVE_APP

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏