title: How to print elements (xpath) text on a different line in selenium?
body: <p>The title may sound confusing but I'm trying to get the <code>.text()</code> from an Xpath all on separate readable lines. For example you don't see a book that is written in one line.
  I've tried using for loops and had the idea of splitting the text so every 10 words it will add a new line but I can't seem to get it to work. However I am very new to python and I'm pretty sure using for loops works and <code>.split()</code> works but I just can't figure it out.</p>
  <pre><code>text = driver.find_element_by_xpath('//*[@id=&quot;mw-content-text&quot;]/div[1]/p[1]')
  text = text.split()
  
  for i in text:
      something
  </code></pre>
  <p>Any help will be appreciated.</p>