当前位置:网站首页>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.
边栏推荐
- UE4 制作遇到的问题
- typescript23-元组
- UE4 rays flashed from mouse position detection
- Selenium:表单切换
- pytroch、tensorflow对比学习—使用GPU训练模型
- 文件的异步读写
- typescript25 - type assertion
- Progressive Reconstruction of Visual Structure for Image Inpainting 论文笔记
- 在沈自所的半年总结
- Code Interview Guide for Programmers CD15 Generating an Array of Windowed Maximums
猜你喜欢
随机推荐
PaddleX部署推理模型和GUI界面测试结果不一致的解决方法
USB3.0:VL817Q7-C0的LAYOUT指南(二)
请问shake数据库中为什么读取100个collection 后,直接就退出了,不继续读了呢?
Swastika line-by-line parsing and realization of the Transformer, and German translation practice (a)
typescript21-接口和类型别名的对比
Selenium:下拉框操作
Typescript20 - interface
Selenium:上传、下载文件
FFmpeg 搭建本地屏幕录制环境
PAT乙级 1002 写出这个数
Selenium:操作JS
李迟2022年7月工作生活总结
Selenium:表单切换
Immutable
「以云为核,无感极速」顶象第五代验证码
Selenium:操作Cookie
用控件当画笔获得bitmap代码记录
Swastika line-by-line parsing and realization of the Transformer, and German translation practice (2)
备战金九银十,如何顺利通过互联网大厂Android的笔面试?
2022年超全的Android面经(附含面试题|进阶资料)