title: Extract first element in the class using selenium
body: <p>This 
  <a href="https://www.google.com/search?client=ubuntu&amp;hs=Zck&amp;channel=fs&amp;ei=DwVuXaKGO832rQG6xLO4DQ&amp;q=new+york+pincode&amp;oq=new+york+pincode&amp;gs_l=psy-ab.3..0j0i22i30l5.8789.13949..14325...4.2..0.136.1771.4j12......0....1..gws-wiz.....10..0i71j35i39j0i67j0i131j0i131i20i263j0i20i263j0i22i10i30.0omoHBJAff0&amp;ved=0ahUKEwjiyfulgLTkAhVNeysKHTriDNcQ4dUDCAo&amp;uact=5" rel="nofollow noreferrer">search</a>
  gives the result and there are multiple pincodes present. I only need to capture the first element in the class. </p>
  
  <p>code : </p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from bs4 import BeautifulSoup
  import re
  import pandas as pd
  import os
  import html5lib
  import json
  import time
  from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.common.keys import Keys
  url = "https://www.google.com/"
  chromedriver = r"C:\Users\me\chromedriver"
  driver = webdriver.Chrome(chromedriver)
  driver.implicitly_wait(30)
  driver.get(url)
  search = driver.find_element_by_name('q')
  search.send_keys("newyork pincode")
  search.send_keys(Keys.RETURN) 
  
  
  
  time.sleep(5) 
  driver.quit()
  </code></pre>