title: Converting WebDriver.current_url into string in python
body: <p>Im currently trying to get a webpage url converted into a string so that it could be put into a html format</p>
  <pre><code>  for x in range(3):
  
          wDriver.get('https://www.example.com/')
          sTitle = wDriver.find_element_by_xpath('/html[1]/body[1]/div[1]/main[1]/div[4]/div[1]/div[1]/div[1]/div[1]/div['+str(i)+']/div[1]/div[1]/h2[1]/a[1]')
          sTitle.click()
          link = wDriver.current_url
          sHeader = wDriver.find_element_by_class_name('c-page-title')
          print(sHeader.text + ' ' + link)
          i=i+1
          newLink = str(link)
          time.sleep(2)
      
          
          sReturn = sReturn + '&lt;p&gt;&lt;a href=&quot;'+newLink+'&quot;&gt;'+sHeader+'&lt;/a&gt;&lt;/p&gt;'
  </code></pre>
  <p>The error code I get is</p>
  <pre><code>&quot;TypeError: can only concatenate str (not &quot;WebElement&quot;) to str&quot;
  </code></pre>