title: Finding a string in an URL's source code with selenium webdriver
body: <p>I'm trying to extract a keyword/string from a website's source code using this python 2.7 script:</p>
  
  <pre><code>from selenium import webdriver
  
  keyword = ['googleadservices']
  
  driver = webdriver.Chrome(executable_path=r'C:\Users\Jacob\PycharmProjects\Testing\chromedriver_win32\chromedriver.exe')
  driver.get('https://www.vacatures.nl/')
  
  elem = driver.find_element_by_xpath("//*")
  source_code = elem.get_attribute("outerHTML")
  
  for searchstring in keyword:
      if searchstring.lower() in str(source_code).lower():
          print (searchstring, 'found')
      else:
          print (searchstring, 'not found')
  </code></pre>
  
  <p>The browser fortunately opens when the script is running, but I'm not able to extract the desired keywords from it's source code. Any help?</p>