I am trying to login into Instagram by using selenium and Python but I cant get find input elements like "uername" and "password". I am using Google Chrome
HTML
<label class="_aa48"><span class="_aa4a">Telefonnummer, Benutzername oder E-Mail-Adresse</span><input aria-label="Telefonnummer, Benutzername oder E-Mail-Adresse" aria-required="true" autocapitalize="off" autocorrect="off" maxlength="75" class="_aa4b _add6 _ac4d" type="text" value="" name="username"></label>
I looked a lot of similar posts but I guess selenium got updates and none of the solutions are working in my case.
Following code I tried without success:
My Code (try 1)
enter_username = self.driver.find_element(By.NAME, "username")
My Code (try 2)
enter_username = self.driver.find_element(By.CSS_SELECTOR, "._aa48")