当前位置:网站首页>selenium操作元素遇到的异常
selenium操作元素遇到的异常
2022-06-12 21:26:00 【InfoQ】
1. NoSuchElementException异常
2. NoSuchFrameException异常
3. NoSuchWindowException异常
4. ElementNotVisiableException异常
5.ElementNotInteractableException异常
6.StaleElementReferenceException异常
VerifyExceptionStaleElement
[Documentation] 处理点击元素报StaleElementReferenceException异常
... 如果定位元素获取到的是个元素列表,需要传列表index,指定列表中的哪个具体元素
[Arguments] ${ele_locator} ${multiple_elements_flag} ${multiple_elements_locator} ${ele_index}
IF '${multiple_elements_flag}' == 'true'
@{ele_list} get webelements ${multiple_elements_locator}
click element ${ele_list}[${ele_index}]
ELSE
refreshpage
sleep 5
click element ${ele_locator}
END
7.InvalidStaleElementException异常
8.TimeoutException异常
9.NoAlertPresentException异常
10.UnsupportedCommandException异常
11.WebDriverException 异常
边栏推荐
- Common error in script execution: build sh: caller: not found
- #113 Path Sum II
- 二分查找
- zgc的垃圾收集的主要阶段
- GNS installation and configuration
- What's a good gift for the goddess Festival? Gift recommendation for the goddess Festival on March 8
- Leetcode: 210. Programme II
- #886 Possible Bipartition
- #141 Linked List Cycle
- Teambition 协作应用心得分享|社区征文
猜你喜欢

What's a good gift for the goddess Festival? Gift recommendation for the goddess Festival on March 8
![Fill in the checklist & lt; int> Have default values? [repeat] - fill list & lt; int> with default values? [duplicate]](/img/65/a214d137e230b1a1190feb03660f2c.jpg)
Fill in the checklist & lt; int> Have default values? [repeat] - fill list & lt; int> with default values? [duplicate]

GPU giant NVIDIA suffered a "devastating" network attack, and the number one malware shut down its botnet infrastructure | global network security hotspot on February 28

A high-value MySQL management tool

Lombok package is successfully installed, but the runtime prompts that get, set method and constructor solution cannot be found

Pixel level reconstruction and restoration technology to solve severe image blur

Vs2017 environmental issues

#141 Linked List Cycle

Lintcode:127. Topology sorting

GNS installation and configuration
随机推荐
USB mechanical keyboard changed to Bluetooth Keyboard
Solution of multi machine room dynamic loop status network touch screen monitoring
Data visualization diagram microblog forwarding diagram
Data visualization - histogram
结构体知识点all in
Market trend report, technical innovation and market forecast of hydraulic chain hoist in China
#886 Possible Bipartition
The Post-00 financial woman with a monthly salary of 2W conquered the boss with this set of report template
Main stages of garbage collection in ZGC
Data visualization - biaxial comparison effect
测试基础之:单元测试
Market trend report, technical innovation and market forecast of hydraulic torque wrench in China
What's a good gift for the goddess Festival? Gift recommendation for the goddess Festival on March 8
求解一维数组前缀和
一款高颜值的MySQL管理工具
Composer version degradation
Vs2017 environmental issues
#113 Path Sum II
ASCII code comparison table
Pytorch how to set random number seed to make the result repeatable