在某次自动化测试中,需要定位下拉列表(非select列表)中不同的元素,我想到了利用参入参数的方式来实现,经过多次尝试,得到如下方法,与大家分享 例如在通过text定位某个元素时,self.find_element(By.XPATH, "//span[contains(text(),'张三')]". Read More
posted @ 2021-06-08 17:27 Taider_Yang Views(884) Comments(0) Diggs(0) Edit