Faced such a problem. Learning Automation Python (v3.7) + Selenium, wrote an ancient test for authorization according to the standard
def test_authorization_google(app): app.open_mobile_page() app.login_google(username="name@gmail.com", password="password") app.logout() def login_google(self, username, password): wd = self.wd # Π½Π°ΠΆΠΈΠΌΠ°Ρ Π½Π° ΠΊΠ½ΠΎΠΏΠΊΡ "Π°Π²ΡΠΎΡΠΈΠ·Π°ΡΠΈΡ" wd.find_element_by_css_selector(".login").click() # ΠΏΠΎΡΠ²ΠΈΠ»Π°ΡΡ ΡΡΡΠ°Π½ΠΈΡΠ°, Π² ΠΊΠΎΡΠΎΡΠΎΠΉ Ρ Π½Π°ΠΆΠΈΠΌΠ°Ρ Π½Π° ΠΊΠ½ΠΎΠΏΠΊΡ Π²Ρ
ΠΎΠ΄Π° ΡΠ΅ΡΠ΅Π· ΡΠΎΡ ΡΠ΅ΡΡ wd.find_element_by_css_selector(".google").click() # ΡΡΡ ΠΎΡΠΊΡΡΠ²Π°Π΅ΡΡΡΡ ΠΏΠΎΠΏΠ°ΠΏ ΠΎΠΊΠ½ΠΎ Π³ΡΠ³Π» Π΄Π»Ρ Π²Π²ΠΎΠ΄Π° Π»ΠΎΠ³ΠΈΠ½, Ρ Π΅Π³ΠΎ Π²Π²ΠΎΠΆΡ wd.find_element_by_name("identifier").click() wd.find_element_by_name("identifier").clear() wd.find_element_by_name("identifier").send_keys(username) # Π½Π°ΠΆΠΈΠΌΠ°Ρ Π½Π° ΠΊΠ½ΠΎΠΏΠΊΡ "Π΄Π°Π»Π΅Π΅" wd.find_element_by_css_selector("/html/body/div[1]/div[1]/div[2]/div[2]/div/div/div[2]/div/div[2]/div[1]/div/content/span").click() # ΠΎΡΠΊΡΡΠ»ΠΎΡΡ ΠΎΠΊΠ½ΠΎ Π΄Π»Ρ Π²Π²ΠΎΠ΄Π° ΠΏΠ°ΡΠΎΠ»Ρ, Ρ Π΅Π³ΠΎ Π²Π²ΠΎΠΆΡ wd.find_element_by_name("password").click() wd.find_element_by_name("password").clear() wd.find_element_by_name("password").send_keys(password) # Π½Π°ΠΆΠΈΠΌΠ°Ρ Π½Π° ΠΊΠ½ΠΎΠΏΠΊΡ "Π΄Π°Π»Π΅Π΅" wd.find_element_by_css_selector("/html/body/div[1]/div[1]/div[2]/div[2]/div/div/div[2]/div/div[2]/div[1]/div/content/span").click() When I launch it, an additional pop-up window opens for entering the login, and thatβs all, the login isnβt entered and after a while the test drops, can anyone tell me how to write the test correctly?
Suppose both when logging in via Google mail at https://automated-testing.info 
wd.find_element_by_name("identifier")finds something. Maybe you need to wait until the page is loaded, here are the expectations of the elements: ru.stackoverflow.com/a/836240/201445 - gil9redΠΠΎΠΉΡΠΈand select the item inspection and see what it is. I think that this is aniframe, then you need the code on the example:driver.switch_to.frame(driver.find_element_by_css_selector(css_selector))- gil9red 1:16 pm