小编mik*_*ike的帖子

断言元素不存在python Selenium

我正在使用Selenium python并寻找一种断言元素不存在的方式,例如:

assert not driver.find_element_by_xpath("locator").text== "Element Text"
Run Code Online (Sandbox Code Playgroud)

python selenium python-2.7

2
推荐指数
1
解决办法
4746
查看次数

标签 统计

python ×1

python-2.7 ×1

selenium ×1