我要打印页面中所有的img的src,我想看看它是否能识别它,
因为当我这么做的时候
driver.find_element_by_xpath("//img[@src='http://images.yad2.co.il/Pic/site_images/yad2/MyYad2/images/myorderbottom/new/jump_ad.png'").click()
上面写着:
^{pr2}$
我尝试过css_selector
,但是没有成功,所以我想打印imgs
的所有src,我该怎么做呢?在
Tags:
实际上,您的
xpath
在语法上不正确,您缺少右括号]
,因此您应该尝试如下:或使用
^{pr2}$css_selector
作为:-如果要打印所有
img
src属性,请尝试如下方式:-好吧,@Saurabh Gaur是对的,现场有Iframe, 简单的解决方案
从那里我可以找到按钮,然后我就回来了
^{pr2}$从这里我可以继续到下一帧了! @苏拉布·高尔非常感谢你!,你太棒了!在
相关问题 更多 >
编程相关推荐