当前位置:网站首页>Selenium: Popup Handling
Selenium: Popup Handling
2022-08-01 05:09:00 【Mouse A who is not afraid of cats】
Popup in HTML
1. In the actual system, a dialog box will pop up to prompt when certain operations are completed, which are mainly divided into three types of dialog boxes: "warning message box", "confirmation message box" and "prompt message dialog"
2. Warning message box: alert
⑴The warning message box provides an "OK" button for the user to close the message box, and the message box is a modal dialog box, which means that the user must close the message box firstThen you can continue.
3. Confirmation message box (confirm)
⑴ The confirmation message box prompts the user a "Yes or No" question, the user can select the "OK" button and the "Cancel" button according to the selection
4. Prompt message dialog (prompt)
⑴The prompt message box provides a text field where the user can enter an answer in response to your prompt
⑵ ⑵The message box has an "OK" buttonand a "Cancel" button.Selecting "Confirm" will respond to the corresponding prompt information, and selecting "Cancel" will close the dialog box
Selenium positioning popup
1. In Selenium, if you simply locate the pop-up window, you cannot locate it
2. Because this pop-up window is not an HTML element, it belongs to the browser's own pop-up window (generated by JavaScript)
边栏推荐
- scheduleWithFixedDelay和scheduleAtFixedRate的区别
- High Numbers | 【Re-integration】Line Area Score 880 Examples
- (2022 Niu Ke Duo School IV) N-Particle Arts (Thinking)
- (2022牛客多校四)D-Jobs (Easy Version)(三维前缀或)
- II. Binary tree to Offer 68 - recent common ancestor
- (2022牛客多校四)H-Wall Builder II(思维)
- WPF项目-初步了解数据绑定 binding
- 25. 这三道常见的面试题,你有被问过吗?
- Use controls as brushes to get bitmap code records
- typescript25 - type assertion
猜你喜欢
随机推荐
(2022 Nioke Duo School IV) H-Wall Builder II (Thinking)
II. Binary tree to Offer 68 - recent common ancestor
pytroch、tensorflow对比学习—搭建模型范式(低阶、中阶、高阶API示例)
风险策略调优中重要的三步分析法
NDK does not contain any platforms问题解决
请问shake数据库中想把源的db0的数据同步到目的db5,参数怎么设置呢?
程序员代码面试指南 CD15 生成窗口最大值数组
56:第五章:开发admin管理服务:9:开发【文件上传到,MongoDB的GridFS中,接口】;(把文件上传到GridFS的SOP)
pytorch、tensorflow对比学习—功能组件(优化器、评估指标、Module管理)
What should I do if the neural network cannot be trained?
Asynchronous reading and writing of files
Excel做题记录——整数规划优化模型
WPF项目-按着键盘方向键,移动格子盒子效果
罗技鼠标体验记录
MySQL Practice Summary -
Robot_Framework:关键字
力扣(LeetCode)212. 单词搜索 II(2022.07.31)
pytroch、tensorflow对比学习—功能组件(数据管道、回调函数、特征列处理)
API设计笔记:pimpl技巧
关于给Qt做一个软件初始化的进度条