如何使用selenium python单击图像按钮

2024-09-24 02:28:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用python编写一个selenium web驱动程序。 我需要帮助clickpython中使用selenium的图像按钮。在

我的html页面信息如下:

<code>
   <a href="javascript:void(0);" onclick="location.href='Yad2Edit.php?SalesID=11847965&amp;leumiCardEnabled=0'">
      <img style="border: 0px;" src="http://images.yad2.co.il/Pic/site_images/yad2/MyYad2/images/myorderbottom/new/edit_ad.png" alt="">
    </a>
</code>

Tags: 图像web信息htmlselenium驱动程序code页面