How can I click via selenium and python on such element:
<a href="#create" class="btn toolbarBtn">
<i class="fa fa-plus-circle"></i> Create
</a>
When I Copy Xpath this element from Chrome i got this:
//*[@id="page"]/div/div/div/div[1]/div[1]/a/i
But when I use it in my code:
driver.find_element_by_xpath('//*[@id="page"]/div/div/div/div[1]/div[1]/a/i').click()
I got error that:
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="page"]/div/div/div/div[1]/div[1]/a/i').click()"}
When I tried to use find_element_by_link_text
and partial_link_text
I got same error that selenium was unable to find such element.