Fetch all href link using selenium in python
<p>I am practicing Selenium in Python and I wanted to fetch all the links on a web page using Selenium.</p>

<p>For example, I want all the links in the <code>href=</code> property of all the <code>&lt;a&gt;</code> tags on <a href="http://psychoticelites.com/" rel="noreferrer">http://psychoticelites.com/</a></p>

<p>I've written a script and it is working. But, it's giving me the object address. I've tried using the <code>id</code> tag to get the value, but, it doesn't work.</p>

<p>My current script:</p>

<pre><code>from selenium import webdriver
from selenium.webdriver.common.keys import Keys


driver = webdriver.Firefox()
driver.get("http://psychoticelites.com/")

assert "Psychotic" in driver.title

continue_link = driver.find_element_by_tag_name('a')
elem = driver.find_elements_by_xpath("//*[@href]")
#x = str(continue_link)
#print(continue_link)
print(elem)
</code></pre>