Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98822

How to Find an Element to Click on Instagram Unfollow Button

$
0
0

I am making an Instagram bot using selenium and python. I am trying to implement a function which allows a certain amount of followers to be unfollowed. The code navigates to the unfollow screen which has many buttons that say unfollow. The buttons are hard to find with selenium though. If the find_element_by_tag('button') function is used only 3 buttons are found. The button html is:

<button class="_0mzm- sqdOP  L3NKy   _8A5w5    " type="button">Following</button>

For some reason, I cannot get selenium to select the element. Are there any ways someone can see how to click it?enter image description here


Viewing all articles
Browse latest Browse all 98822

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>