I'm building a python Instagram bot, and I'm trying to get it to click on the DMs icon, but I'm not sure how to select it.
I tried selecting by Xpath, but I can't seem to be able to navigate it to the icon. Here's Instagram's html code for the DMs icon:
<svg aria-label="Messenger" class="_8-yf5 " color="#262626" fill="#262626" height="24" role="img" viewBox="0 0 24 24" width="24">
Any help is appreciated.