Selenium/Python:我正在尝试使用WebDriverWait来通过xpath定位一个元素。我肯定我遗漏了一些简单的东西,在代码的其他部分也有同样的基本内容。第964行,在find_element if self.w3c: AttributeError:'str‘对象中没有属性'w3c’
我尝试在presence_of_element_located的参数中加上一个没有额外括号的为了说明起见,xpath已经更改为"
x-axis limits "10,20,30"Then the graph has no error
目前,我希望这个测试会失败应用程序在带有id div的graph中显示一个图形。当用户设置轴限值"10,20,30“并单击"changeaxis”按钮时,应用程序中有一个错误:将类error分配给包含图形的div。should have_no_selector(:xpath, <e