当前位置:网站首页>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.
边栏推荐
- API设计笔记:pimpl技巧
- ModuleNotFoundError: No module named 'tensorflow.keras' error message solution
- 数组问题之《下一个排列》、《旋转图像》以及二分查找之《搜索二维矩阵》
- Visual Studio提供的 Command Prompt 到底有啥用
- (2022 Niu Ke Duo School IV) N-Particle Arts (Thinking)
- [MySQL] 多表查询
- Selenium:元素等待
- (Codeforce 757) E. Bash Plays with Functions
- Selenium:操作Cookie
- pytroch、tensorflow对比学习—专栏介绍
猜你喜欢
typescript21 - Comparison of Interfaces and Type Aliases
(Codeforce 757)E. Bash Plays with Functions(积性函数)
类神经网络训练不起来怎么办
Lawyer Interpretation | Guns or Roses?Talking about Metaverse Interoperability from the Battle of Big Manufacturers
typescript24-类型推论
typescript21-接口和类型别名的对比
Excel record of integer programming optimization model to solve the problem
Progressive Reconstruction of Visual Structure for Image Inpainting 论文笔记
UE4 rays flashed from mouse position detection
typescript28 - value of enumeration type and data enumeration
随机推荐
MySQL-DML语言-数据库操作语言-insert-update-delete-truncate
零序电流继电器器JL-8C-12-2-2
25. 这三道常见的面试题,你有被问过吗?
罗技鼠标体验记录
6-23漏洞利用-postgresql代码执行利用
PAT serie b write the number 1002
风险策略调优中重要的三步分析法
typescript27 - what about enumeration types
typescript26-字面量类型
ModuleNotFoundError: No module named 'tensorflow.keras' error message solution
请问shake数据库中想把源的db0的数据同步到目的db5,参数怎么设置呢?
In the shake database, I want to synchronize the data of the source db0 to the destination db5, how to set the parameters?
请问shake数据库中为什么读取100个collection 后,直接就退出了,不继续读了呢?
pytorch、tensorflow对比学习—功能组件(优化器、评估指标、Module管理)
pytroch、tensorflow对比学习—使用GPU训练模型
Selenium:简介
Selenium:元素定位
冲刺金九银十,Android开发面试(内含面试资料|面试题|源码)
UE4 模型OnClick事件不生效的两种原因
[MySQL] 多表查询