Selenium: AttributeError: 'list' object has no attribute 'click'

Viewed 28

I was about to use selenium to click a button with href property

However, there was an error stated as followed:

AttributeError: 'list' object has no attribute 'click'

The list was printed out as:

<selenium.webdriver.remote.webelement.WebElement (session="a4e0995fff7e6b3a41993ea4d431dced", element="00ecbfd8-271f-4085-b5a7-9020f573cbf4")>
<selenium.webdriver.remote.webelement.WebElement (session="a4e0995fff7e6b3a41993ea4d431dced", element="b6ce17a5-fc33-47bc-9873-3a28324e3193")>
<selenium.webdriver.remote.webelement.WebElement (session="a4e0995fff7e6b3a41993ea4d431dced", element="43ae3fe4-8f87-4ce0-b4fd-5ba06fdd9d3b")>

HTML of this [button][1]:

<a target="_blank" href="/e/rk/zhuangchu.php?zhongwenaddid=42663&amp;zhongwenid=472&amp;bclassid=63&amp;userid=375215">Web of science </a>

After clicking the button(manually) is supposed to load to a robot verification page: the URL is different from the href in the label

Please guide me on clicking this button [1]: https://i.stack.imgur.com/2urOP.jpg

0 Answers
Related