title: Python: For Loop breaks to early - Why?
body: <p>I want my Code (see below) to take 5 screenshots of each Breakpoint. But after 3 screenshots from Breakpoint 1280 it starts to take screenshots from the next breakpoint. </p>
  
  <p>What I´m doing wrong or what I´m missing?</p>
  
  <pre><code>#!/bin/sh
  
  from datetime import datetime
  from selenium import webdriver
  from pyvirtualdisplay import Display
  import time
  from selenium.webdriver.chrome.options import Options
  
  now = datetime.now().strftime('%d-%m-%Y_%H-%M-%S')
  Breakpoint_1280 = 0
  Breakpoint_768 = 0
  Breakpoint_320 = 0
  
  # Set Breakpoint for different View
  Breakpoints = [1280, 768, 320]
  
  for points in Breakpoints:
      display = Display(visible=0, size=(points, 800))
      display.start()
      driver = webdriver.Chrome('/usr/local/bin/chromedriver')
      driver.set_page_load_timeout(30)
      driver.get('https://www.example.com')
      driver.maximize_window()
  
      # Taking Screnshoot in different Breakpoints
      if points == 1280:
          for a in Breakpoints:
              Breakpoint_1280 += 1
              print ("Taking %s. Screenshot for Breakpoint 1280" %(Breakpoint_1280))
              driver.get_screenshot_as_file('Breakpoint_1280_Snap%s_%s.png' %(Breakpoint_1280, now))
              time.sleep(10)
              if Breakpoint_1280 == 5:
                  break
  
      elif points == 768:
          for b in Breakpoints:
              Breakpoint_768 += 1
              print ("Taking %s. Screenshot for Breakpoint 768" %(Breakpoint_768))
              driver.get_screenshot_as_file('Breakpoint_768_Snap%s_%s.png' %(Breakpoint_768, now))
              time.sleep(10)
              if Breakpoint_768 == 5:
                  break
  
      else:
          for c in Breakpoints:
              Breakpoint_320 += 1
              print ("Taking %s. Screenshot for Breakpoint 320" %(Breakpoint_320))
              driver.get_screenshot_as_file('Breakpoint_320_Snap%s_%s.png' %(Breakpoint_320, now))
              time.sleep(10)
              if Breakpoint_320 == 5:
                  break
      display.stop()
  </code></pre>
  
  <p>Hope someone can help me .. Thanks a lot :)</p>