当前位置:网站首页>Selenium:表单切换
Selenium:表单切换
2022-08-01 04:59:00 【不怕猫的耗子A】
表单
1、就是网页标签名为frame或iframe的元素,表单引用了其他页面的链接,真正的页面数据没有出现在源码中,但是在浏览器中可以看见,与浏览器的多个窗口类似
⑴这里说的表单不是HTML中的form标签,而是frame或iframe标签
⑵frame、iframe标签为HTML页面中的一种表单框架,主要作用是在当前页面中指定区域显示另一页面元素
2、frame或iframe标签表示在当前页面中镶嵌了另一个页面(以URL链接方式引用的)。因此就相当于是两个页面显示在了同一个窗口中
⑴这两个页面中的源码、元素是分开的
⑵外层页面:就是我们看到的主页面(用于包含frame、iframe标签的页面)
⑶内层页面:就是被镶嵌在外层页面中的页面(frame、iframe标签里面的页面)
⑷frame或iframe标签是属于外层页面的,要这两个标签包裹的部分才是内层页面的
3、在使用Selenium的WebDriver对象对这类页面(存在frame、iframe标签)进行元素定位时,WebDriver对象默认操作的是外层页面。对表单里的元素无法直接定位
⑴此时如果需要对frame、iframe标签内的元素进行定位的话,就需要切换到表单页面再进行定位
4、这个其实就跟前面介绍的"窗口切换&
边栏推荐
- scheduleWithFixedDelay和scheduleAtFixedRate的区别
- ModuleNotFoundError: No module named 'tensorflow.keras' error message solution
- (2022 Niu Ke Duo School IV) N-Particle Arts (Thinking)
- 56:第五章:开发admin管理服务:9:开发【文件上传到,MongoDB的GridFS中,接口】;(把文件上传到GridFS的SOP)
- 4D line-by-line analysis and implementation of Transformer, and German translation into English (3)
- In the shake database, I want to synchronize the data of the source db0 to the destination db5, how to set the parameters?
- Excuse me, only primary key columns can be queried using sql in table storage. Does ots sql not support non-primary keys?
- 万字逐行解析与实现Transformer,并进行德译英实战(一)
- 2022年超全的Android面经(附含面试题|进阶资料)
- LeetCode 1189. “气球” 的最大数量
猜你喜欢

typescript24 - type inference

pytorch、tensorflow对比学习—功能组件(优化器、评估指标、Module管理)

USB3.0:VL817Q7-C0的LAYOUT指南(二)

UE4 从鼠标位置射出射线检测

HJS-DE1/2时间继电器

2022年超全的Android面经(附含面试题|进阶资料)

pytroch、tensorflow对比学习—功能组件(数据管道、回调函数、特征列处理)

基于ProXmoX VE的虚拟化家庭服务器(篇一)—ProXmoX VE 安装及基础配置

typescript27 - what about enumeration types

认真对待每一个时刻
随机推荐
【无标题】
罗技鼠标体验记录
认真对待每一个时刻
Risk strategy important steps of tuning method
The method of solving stored procedure table name passing through variable in mysql
基于Arduino制作非接触式测温仪
state compressed dp
「以云为核,无感极速」顶象第五代验证码
typescript28 - value of enumeration type and data enumeration
今日睡眠质量记录68分
(2022牛客多校四)K-NIO‘s Sword(思维)
剑指 Offer 68 - II. 二叉树的最近公共祖先
PMP 相关方管理必背总结
一个往年的朋友
vim配置+ctag像source insight一样方便阅读代码
(more than 2022 cattle school four) A - Task Computing + dynamic programming (sort)
mysql中解决存储过程表名通过变量传递的方法
关于给Qt做一个软件初始化的进度条
请求/响应拦截器写法
typescript26 - literal types