Contact Us,以下哪些方法可以定位它?( ) - 搜搜题库网"/> Contact Us,以下哪些方法可以定位它?( )"/>
请在 下方输入 要搜索的题目:

假设有一个链接<a href="https://example.com/contact">Contact Us</a>,以下哪些方法可以定位它?( )


A、find_element("linktext","ContactUs")
B、find_element("partiallinktext","Contact")
C、find_element("xpath","//a[@href='https://example.com/contact']")
D、find_element("cssselector","a[href='https://example.com/contact']")

发布时间:2025-11-19 06:30:57
推荐参考答案 ( 由 题搜搜 官方老师解答 )
答案:find_element("link text", "Contact Us") ■find_element("partial link text", "Contact") ■find_element("xpath", "//a[@href='https://example.com/contact']") ■find_element("css selector", "a[href='https://example.com/contact']")
登录 - 搜搜题库网
立即注册
注册 - 搜搜题库网
立即登录