Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用CSS识别定位器_Css_Selenium - Fatal编程技术网

使用CSS识别定位器

使用CSS识别定位器,css,selenium,Css,Selenium,使用CSS识别定位器的问题 网页中存在10个具有相同定位器名称的元素。每个web元素xpath都是相同的。xpath值为 //div[@class='thumb_image'] web元素列表的大小为10。如果我想访问第5个元素,那么我可以使用索引值(//div[@class='thumb\u image'])[5]。如何使用级联样式表定位器应用程序获取第五个元素。你能帮我解决这个问题吗?试一下。thumb\u图像:第n个类型(5) 有关更多详细信息,请访问链接: 嗨,赛!我不确定这是否会成

使用CSS识别定位器的问题

网页中存在10个具有相同定位器名称的元素。每个web元素xpath都是相同的。xpath值为

 //div[@class='thumb_image']

web元素列表的大小为10。如果我想访问第5个元素,那么我可以使用索引值
(//div[@class='thumb\u image'])[5]
。如何使用级联样式表定位器应用程序获取第五个元素。你能帮我解决这个问题吗?

试一下。thumb\u图像:第n个类型(5)

有关更多详细信息,请访问链接:


嗨,赛!我不确定这是否会成为一个问题。请添加一些详细信息+代码示例。看见