我正在使用Selenium python并寻找一种断言元素不存在的方式,例如:
assert not driver.find_element_by_xpath("locator").text== "Element Text"
python selenium python-2.7
python ×1
python-2.7 ×1
selenium ×1