selenium定位元素(一)数组定位(二)input下拉框的定位(三)多个条件定位
整理一下,selenium的定位方法。(一)数组定位按F12进入浏览器的调试模式,进入console控制台,输入$x(xpath),如下图搜索所有input标签,一共搜索12 值,根据需要选择下标值。selenium写法:box = driver.findElements("//input").get(0);box.clear();box.sendKeys("给input为...