当前位置:网站首页>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.
边栏推荐
- 用控件当画笔获得bitmap代码记录
- y83. Chapter 4 Prometheus Factory Monitoring System and Actual Combat -- Advanced Prometheus Alarm Mechanism (14)
- typescript23-元组
- 文件的异步读写
- mysql中解决存储过程表名通过变量传递的方法
- Selenium:简介
- typescript28 - value of enumeration type and data enumeration
- Selenium:浏览器操作
- 数组问题之《下一个排列》、《旋转图像》以及二分查找之《搜索二维矩阵》
- 备战金九银十,如何顺利通过互联网大厂Android的笔面试?
猜你喜欢
随机推荐
Pyspark Machine Learning: Vectors and Common Operations
pytorch、tensorflow对比学习—张量
FFmpeg 搭建本地屏幕录制环境
typescript19-对象可选参数
牛客多校2022第四场A,H,K,N
「以云为核,无感极速」顶象第五代验证码
pytroch、tensorflow对比学习—搭建模型范式(构建模型方法、训练模型范式)
Excel做题记录——整数规划优化模型
High Numbers | 【Re-integration】Line Area Score 880 Examples
Li Chi's work and life summary in July 2022
Selenium:表单切换
pytroch、tensorflow对比学习—功能组件(数据管道、回调函数、特征列处理)
ModuleNotFoundError: No module named ‘tensorflow.keras‘报错信息的解决方法
Selenium:浏览器操作
MySQL-数据定义语言-DDLdatebase define language
typescript25-类型断言
The difference between scheduleWithFixedDelay and scheduleAtFixedRate
基于Arduino制作非接触式测温仪
干货!如何使用仪表构造SRv6-TE性能测试环境
Code Interview Guide for Programmers CD15 Generating an Array of Windowed Maximums









