Project

General

Profile

Actions

grading_rules #16650

open

data=[{'de name=如何判断一

Added by UserName LastName 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
03/24/2025
Due date:
% Done:

0%

Estimated time:
name:
如何判断一个页面上元素是否存在
data:

- desc: 是否能通过 `try-except` 捕获 `NoSuchElementException` 异常判断元素是否存在,包含得2分,否则得0分。
max: 2
min: 0
name: 异常处理法
- desc: 是否能通过 `find_elements()` 返回列表长度判断元素是否存在(长度>0即存在),包含得2分,否则得0分。
max: 2
min: 0
name: 列表长度法
- desc: 是否能结合 `WebDriverWait` 和 `expected_conditions` 实现显式等待判断元素存在(推荐方法),包含得2分,否则得0分。
max: 2
min: 0
name: 显式等待法
- desc: 是否能解释显式等待(Explicit Wait)相比隐式等待(Implicit Wait)的优势(如精确控制超时、避免全局等待),包含得2分,否则得0分。
max: 2
min: 0
name: 显式等待优势
- desc: 是否能处理动态加载元素(如通过等待元素可见性 `visibility_of_element_located`),包含得2分,否则得0分。
max: 2
min: 0
name: 动态元素处理
- desc: 是否能自定义等待条件(如 `expected_conditions` 或 lambda 函数),包含得2分,否则得0分。
max: 2
min: 0
name: 自定义等待条件
- desc: 是否能说明异常处理法的缺点(如代码冗余、性能损耗),包含得2分,否则得0分。
max: 2
min: 0
name: 异常处理法的局限性
- desc: 是否能优化显式等待的超时和轮询间隔参数(如 `timeout` 和 `poll_frequency`),包含得2分,否则得0分。
max: 2
min: 0
name: 等待参数优化

No data to display

Actions

Also available in: Atom PDF