XPath或CssSelector都可以。无需任何循环,但定位器简单明了。
driver.find_element_by_xpath(".//input[contains(@onclick, '1 Bedroom Deluxe')]")driver.find_element_by_css_selector("input[onclick*='1 Bedroom Deluxe']")
欢迎分享,转载请注明来源:内存溢出
XPath或CssSelector都可以。无需任何循环,但定位器简单明了。
driver.find_element_by_xpath(".//input[contains(@onclick, '1 Bedroom Deluxe')]")driver.find_element_by_css_selector("input[onclick*='1 Bedroom Deluxe']")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)