單項選擇題selenium中,()通過CSS選擇器定位元素。

A.find_element_by_css_selector()
B.find_element_by_class_name()
C.find_element_by_tag_name()
D.find_element_by_name()


您可能感興趣的試卷

你可能感興趣的試題

2.單項選擇題response對象中的encoding,用于()。

A.獲取請求方式
B.獲取響應(yīng)頭
C.設(shè)置或獲取響應(yīng)內(nèi)容的編碼格式,與text屬性搭配使用
D.獲取字符串形式的響應(yīng)內(nèi)容

4.單項選擇題()匹配嵌套了HTML內(nèi)容的文本時,會忽略HTML內(nèi)容本身存在的層次結(jié)構(gòu)。

A.正則表達(dá)式
B.XPath
C.Beautiful Soup
D.所有選項均正確

5.單項選擇題selenium中,能關(guān)閉瀏覽器的是()。

A.exit()
B.quit()
C.close()
D.stop()