title: Selenium - Trouble locating/interacting with login screen
body: <p>I'm trying to automate a lot of my social media stuff, so I'm building an Instagram bot.  I CAN NOT seem to figure out the coding to locate and the input boxes and input my username/password.  I've tried finding elements by name, CSS selector, class name, etc.  I'm at a loss.  New to Selenium and kinda new to python.</p>
  
  <p>Tried every method I've seen on forums, videos etc, and doesn't seem to work.</p>
  
  <pre class="lang-py prettyprint-override"><code>class InstagramBot:
  
      def __init__(self, username, password):
          self.username = username
          self.password = password
  
          self.driver = webdriver.Chrome('chromedriver')
          chrome_options = webdriver.ChromeOptions();
          chrome_options.add_experimental_option("excludeSwitches", 
          ['enable-automation']);
          driver = webdriver.Chrome(options=chrome_options);
  
      def login(self):
  
          self.driver.get 
          ('https://www.instagram.com/accounts/login/')
  
          self.driver.find_elements_by_class_name('_2hvTZ pexuQ 
          zyHYP').send_keys(self.username)
  
          self.driver.find_elements_by_xpath("//*[contains(text(), 
          'password')]")[0].send_keys(self.password)
  
  
  
  if __name__ == '__main__':
      ig_bot = InstagramBot ('temp_username','temp_password')
      ig_bot.login()
  
  </code></pre>