摘要: 问题: 多个窗口时,该如何识别想操作的窗口,操作页面元素呢? 例如点击一个link属性的文字,跳出新窗口,如何定位新窗口以及操作 分析: 代码: 阅读全文
posted @ 2017-09-16 16:49 女林 阅读(876) 评论(0) 推荐(0) 编辑
摘要: 如何查看是否为iframe *使用FireFox组件firebug->firepath 1.Top Window:可直接定位 2.iframe#i:根据id定位 定位方法: switch_to.frame(name or id or frame_element) 针对有id或name的情况 代码: 阅读全文
posted @ 2017-09-16 15:10 女林 阅读(1644) 评论(0) 推荐(0) 编辑