【发布时间】:2014-07-02 12:46:14
【问题描述】:
我想断言图像存在于页面上。 我在 python 中使用 selenium web 驱动程序。 我还希望在图像尚未加载时打印一条消息。 谁能帮我写一个脚本?
这是一段在网站上显示图像的 html 代码: [img src='photo.jpg' class='图像类']
【问题讨论】:
-
xpath 选择器,
img[src='photo.jpg']
标签: python image selenium webdriver assert