单项选择题Selenium WebDriver如何判断元素是否已选择()

A.使用is_enabled()方法
B.使用is_selected()方法
C.使用is_used()方法
D.使用is_checked()方法


你可能感兴趣的试题

1.单项选择题Selenium WebDriver如何模拟鼠标悬停在元素上()

A.使用above_element()方法
B.使用move_to()方法
C.使用move_to_element()方法
D.使用get_attribute()方法

2.单项选择题在Selenium WebDriver中,如何通过XML路径语言进行定位()

A.使用find_element_by_xpath()方法
B.使用find_element_by_css_selector()方法
C.使用find_element_by_xpath_name()方法
D.使用find_element_by_class_name()方法

3.单项选择题在Selenium WebDriver中,如何切换到浏览器的iframe中()

A.使用switch_to_frame()方法
B.使用switch_to_window()方法
C.使用switch_to_alert()方法
D.使用switch_to_default_content()方法

4.单项选择题JavaScript中,用来输出文本的方法是什么()

A.background-color
B.color
C.font-size
D.text-align

5.单项选择题在PyTest中,以下哪个选项用于将测试用例分组为一个测试集合()

A.pytest.testcase
B.pytest.case
C.pytest.suite
D.pytest.mark

6.单项选择题在PyTest中,可以通过以下哪种方式传递请求参数给Requests库()

A.通过命令行参数
B.通过函数参数
C.通过配置文件
D.以上都可以

7.单项选择题在PyTest中,可以通过哪个装饰器来发送HTTP请求()

A.http.request
B.requests.send
C.pytest.request
D.pytest.mark

8.单项选择题在PyTest中,用于断言HTTP响应的方法是()

A.assert
B.verify
C.check
D.validate

9.单项选择题在PyTest中如何引入Requests库()

A.使用import json
B.使用import http
C.使用import requests
D.使用import urllib

10.单项选择题关于Requests Session线程安全,以下说法正确的是()

A.Session对象是线程安全的,可以在多个线程中共享使用
B.Session对象是进程安全的,可以在多个进程中共享使用
C.Session对象是协程安全的,可以在多个协程中共享使用
D.Session对象不是线程安全、进程安全、协程安全的,不能在多线程、多进程、多协程中共享使用