S
S
Shulaishull2021-09-12 21:53:39
Python
Shulaishull, 2021-09-12 21:53:39

How to enter authorization data in a pop-up window using selenium?

Hello.
Please tell me how can I log in to the pop-up window?
It was not possible to find data entry elements, when opening the site - you can immediately print the login, then TAB, after the password, and Enter. i.e. the question can be solved, I think and use it, but so far I can’t understand how to do it

Please tell me how to implement it in Python
613e4bfc75010768213691.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Karbivnichy, 2021-09-12
@Shulaishull

You can also use PyAutoGui:pip3 install pyautogui

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import pyautogui

driver = webdriver.Chrome()
driver.get("http://95.141.198.238/noload2/files/074/UTF-RSLOAD.NET-.zip")

pyautogui.write('rsload.net') # Логин
pyautogui.press('tab')        # Tab
pyautogui.write('rsload.net') # Пароль
pyautogui.press('enter')      # Enter

D
Dmitry, 2021-09-12
@LazyTalent

http://username:[email protected]/

V
Vasily Bannikov, 2021-09-13
@vabka

You can use Selenium to enter data in this popup:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time

driver = webdriver.Ie()
driver.get("https://scdm.corp.vha.com")
alert = driver.switch_to_alert()
alert.authenticate("username","password")
time.sleep(20)
driver.close()

https://stackoverflow.com/a/48351093/14163502

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question