Answer the question
In order to leave comments, you need to log in
Why does opening the second link reset the logged in user?
I need that, after registration, the browser goes through a link on the same site and writes something to the chat. The problem is that after going to the second link, the user is no longer authorized. Why is that? What am I doing wrong and how to fix it?
main_url="Ссылка1"
test='Ссылка2'
driver=webdriver.Chrome(executable_path="D:\\")
driver.get(url=main_url)
login_input = driver.find_element_by_id('user_username')
login_input.send_keys('test')
password_input = driver.find_element_by_id('user_password')
password_input.send_keys('1234')
confirmation_registration = driver.find_element_by_xpath('xПатч')
time.sleep(10)
driver.get(url=test)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question