title: How to scrape elements of Whatsapp web using selenium
body: <p>Let me brief the problem, I wanted to scrape my own whats-app web data for my experience in scraping.
  Unfortunately, whats-app web limits its elements to 12 or 10 elements at a time, I am not familiar with JavaScript, so <strong>How can i get all the required elements bypassing the limits whats-app had made</strong> </p>
  
  <p>Thank you in advance for your help</p>
  
  <p>MY code:</p>
  
  <pre><code>def __init__(self):
      #self.cookies = []
      chrome_options = Options()    #for now dont do --headless
      chrome_options.add_argument("user-data-dir=C:\\Users\\Unknown\\AppData\\Local\\Google\\Chrome\\User Data")
      chrome_options.add_experimental_option('detach', True)    # so, browser keeps open dont close
  
      chrome_path = which('chromedriver')
      driver = webdriver.Chrome(executable_path=chrome_path, options=chrome_options)
      driver.set_window_size(1920, 1080)
  
      driver.get("https://web.whatsapp.com")
      time.sleep(10)
      recentList = driver.find_elements_by_xpath("//div[@class='_2wP_Y']")
      print('\n\n RECENT LIST\n\n')
      print(recentList)
      #self.html = driver.page_source
  
  def parse(self, response):
      pass
      #resp = Selector(text=self.html)
  </code></pre>