pythonselenium:我不能单击这个退出按钮

2024-09-29 01:37:05 发布

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

我想点击的确切按钮是:

  1. https://www.bungol.ca/map/location/toronto/

  2. 关闭左侧的属性滑块

  3. 单击工具->打开列表

  4. 点击任何一个列表,你就会得到这样的结果:

Image for close button

我试着这么做:

time.sleep(5) #wait for page to fully load
driver.find_element_by_xpath("""/html/body/div[17]/div/div/div/button""").click()

以及

^{2}$

Tags: 工具httpsdivmap列表for属性www