Skip to content
Advertisement

Python Selenium – How To Click a Non Button Element [closed]

Ive Been Trying to Click a Button on https://blockchain.coinmarketcap.com/chain/bitcoin But With No Success (Shown in photo below). I Couldn’t even get the element I wanted to click. If someone can help me find the element and how to click it, it would be very helpful to me. Thanks in advance. The Button Im trying to click is the page 2 button

Advertisement

Answer

First you need to wait until the element is presented on the page, then scroll to it and then click on it.
I tried to do it as following:

JavaScript

Also it’s better to click on “next page” button so you can use this:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement