0

how can I open the browser page without using chromedriver, for example, I want data to be saved in the main browser used by the user when executing the program, when data is not saved with the use of chromedriver.

0

2 Answers 2

0

I think might be wrong here but there is no way you can do that. You might wanna use 'import webbrowser' as this will open up your default browser so everything will be saved in your main browser. example

import webbrowser

google= 'www.google.com'
webbrowser.open(google)

i hope this helps

Sign up to request clarification or add additional context in comments.

1 Comment

nothing helped because the following details were not entered in the appropriate field webdriver.find_element_by_css_selector("input[type='text']") webdriver.send_keys("text")
0

Use profile,

from selenium import webdriver

options = webdriver.ChromeOptions() options.add_argument("user-data-dir=C:\Path") #Path to your chrome profile w = webdriver.Chrome(executable_path="C:\Users\chromedriver.exe", chrome_options=options)

Comments