title: How do I scrape ::before element in a website using selenium python
body: <p>I am trying to scrape phone number from this website using selenium. I found the class to be "tel ttel" but when I try to scrape the website by find_element_by_xpath. I get an empty string.</p>
  
  <p>My code:</p>
  
  <pre><code>wd = webdriver.Chrome(chrome_path)
  url = 'https://www.justdial.com/Bangalore/Spardha-Mithra-IAS-KAS-Coaching-Centre-Opposite-Maruthi-Medicals-Vijayanagar/080PXX80-XX80-140120184741-R6P8_BZDET?xid=QmFuZ2Fsb3JlIEJhbmsgRXhhbSBUdXRvcmlhbHM='
  wd.get(url)
  phone = wd.find_element_by_xpath('//a[@class="tel ttel"]').text
  print(phone)
  </code></pre>
  
  <p>Output:</p>
  
  <blockquote>
    <p>' '</p>
  </blockquote>
  
  <p>The phone number is located over here:
  <img src="https://i.stack.imgur.com/mfcTp.png" alt="Phone-number"></p>
  
  <p>The Inspect element for the phone number is:
  <img src="https://i.stack.imgur.com/UN1LV.png" alt="Inspect Element"></p>