当前位置:网站首页>Selenium: form switching
Selenium: form switching
2022-08-01 05:08:00 【Mouse A who is not afraid of cats】
Forms
1. It is an element with a webpage tag named frame or iframe. The form references links to other pages. The real page data does not appear in the source code, but it can be seen in the browser, similar to multiple windows in the browser.
1. The form mentioned here is not a form tag in HTML, but a frame or iframe tag.
2. The frame and iframe tags are a form frame in the HTML page.Page Elements
2. frame or iframe tag indicates that another page is embedded in the current page (referenced by URL link).Therefore, it is equivalent to two pages displayed in the same window
⑴ ⑴ The source code and elements in these two pages are separated
⑵ ⑵Layer page: is the main page we see (for pages containing frame, iframe tags)
⑶Inner layerPage: is the page embedded in the outer page (the page in the frame, iframe tag)
⑷frame or iframeThe label belongs to the outer page, and the part enclosed by these two labels is the inner page.
3. When using Selenium's WebDriver object to locate elements of such pages (with frame and iframe tags), The WebDriver object operates the outer layer by default.page.Elements in the form cannot be positioned directly
⑴ At this time, if you need to position the elements in the frame and iframe tags, you need to switch to the form page and then position them
4. This is actually the same as the "window switching" introduced earlier.
边栏推荐
猜你喜欢
这里有110+公开的专业数据集
High Numbers | 【Re-integration】Line Area Score 880 Examples
Selenium:操作Cookie
PaddleX部署推理模型和GUI界面测试结果不一致的解决方法
typescript28-枚举类型的值以及数据枚举
MySQL-数据操作-分组查询-连接查询-子查询-分页查询-联合查询
API Design Notes: The pimpl trick
万字逐行解析与实现Transformer,并进行德译英实战(一)
USB3.0:VL817Q7-C0的LAYOUT指南(三)
Progressive Reconstruction of Visual Structure for Image Inpainting 论文笔记
随机推荐
LeetCode 231. 2 的幂
文件的异步读写
挑战52天背完小猪佩奇(第01天)
零序电流继电器器JL-8C-12-2-2
API设计笔记:pimpl技巧
Selenium:操作JS
y83.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十四)
Selenium:上传、下载文件
mysql中解决存储过程表名通过变量传递的方法
Excuse me, only primary key columns can be queried using sql in table storage. Does ots sql not support non-primary keys?
pytorch、tensorflow对比学习—张量
(Codeforce 757) E. Bash Plays with Functions
I met a shell script
Power button (LeetCode) 212. The word search II (2022.07.31)
pytroch、tensorflow对比学习—功能组件(数据管道、回调函数、特征列处理)
中国的机器人增长
Swastika line-by-line parsing and realization of the Transformer, and German translation practice (2)
解决ffmpeg使用screen-capture-recorder录屏,有屏幕缩放的情况下录不全的问题
MySQL实践总结-
pytorch、tensorflow对比学习—计算图和微分机制