I am building an Instagram bot using selenium, and I want to click on my followers to open the complete list of followers. The problem is, I always get the following error message:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element
I tried locating the element by its Xpath, class name and CSS selector but neither of those worked. I found a post that recommended the following method, which also did not work:
driver.find_element_by_partial_link_text("followers").click()
The strangest part is, once the DevTools are open in the same browser, all of the methods I used worked, i.e. opened my list of followers. I am using Microsoft Edge Version 85.0.564.51 btw.
What am I missing here? If needed, I can provide more code.