I am trying to click on the anchor tag on instagram's page which says log in. Here is my code.
browser = webdriver.Chrome()
browser.get('https://instagram.com')
login_elem = browser.findElement(By.xpath('//p/a[text() = "Log in"'))
login_elem.click()
The browser opens however the element is not clicked. I have tried various other xpaths and none worked. Here is the image for the Instagram source.