当前位置:网站首页>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)
边栏推荐
- 56:第五章:开发admin管理服务:9:开发【文件上传到,MongoDB的GridFS中,接口】;(把文件上传到GridFS的SOP)
- (2022牛客多校四)A-Task Computing (排序+动态规划)
- LeetCode 387. 字符串中的第一个唯一字符
- Lawyer Interpretation | Guns or Roses?Talking about Metaverse Interoperability from the Battle of Big Manufacturers
- 零序电流继电器器JL-8C-12-2-2
- pytroch、tensorflow对比学习—使用GPU训练模型
- Error: AttributeError: module 'matplotlib' has no attribute 'figure'
- 小心你的字典和样板代码
- Swastika line-by-line parsing and realization of the Transformer, and German translation practice (2)
- Seleniu:元素常用操作
猜你喜欢

2022年湖南工学院ACM集训第六次周测题解

NDK does not contain any platforms问题解决

(2022牛客多校四)K-NIO‘s Sword(思维)

typescript26-字面量类型

typescript27 - what about enumeration types

y83.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十四)

Robot_Framework:常用内置关键字

y83. Chapter 4 Prometheus Factory Monitoring System and Actual Combat -- Advanced Prometheus Alarm Mechanism (14)

万字逐行解析与实现Transformer,并进行德译英实战(一)

mysql中解决存储过程表名通过变量传递的方法
随机推荐
剑指 Offer 68 - II. 二叉树的最近公共祖先
Use controls as brushes to get bitmap code records
MySQL-数据定义语言-DDLdatebase define language
typescript25-类型断言
typescript22-接口继承
typescript24 - type inference
基于Arduino制作非接触式测温仪
Asynchronous reading and writing of files
Optional parameters typescript19 - object
LeetCode 1189. “气球” 的最大数量
Swastika line-by-line parsing and realization of the Transformer, and German translation practice (2)
【云原生之kubernetes实战】kubernetes集群的检测工具——popeye
UE4 模型OnClick事件不生效的两种原因
state compressed dp
LeetCode 27. 移除元素
25. 这三道常见的面试题,你有被问过吗?
MySQL-数据操作-分组查询-连接查询-子查询-分页查询-联合查询
2022/07/29 入职健海JustFE团队,我学到了高效开发(年中总结)
pytorch、tensorflow对比学习—功能组件(激活函数、模型层、损失函数)
Excuse me, only primary key columns can be queried using sql in table storage. Does ots sql not support non-primary keys?