#Tutorials 4 || How to stop chrome browser close automatically || Python Selenium

preview_player
Показать описание
#In this tutorials you will learn how to stop chrome browser close automatically

options = webdriver.ChromeOptions()
driver = webdriver.Chrome(options=options)
Рекомендации по теме
Комментарии
Автор

thankyou very very much i am facing this issue last night and now it solved . now feels like i am in haven🤩🤩

anjaliraj
Автор

I was searching for a solution for this problem for almost 2 hours and I am getting nowhere at the end I find it in your tutorial. well I think I have to see all of it now. Thank you and continue your great work

Hapji.Official
Автор

Thanks a lot sir ji.. am continuously facing this issue from last 8 hours and now I got the perfect resolution for that.

gyanaranjanroul
Автор

It really works for me
from selenium import webdriver

driver = webdriver.Chrome()
options = webdriver.ChromeOptions()
options.add_experimental_option("detach", True)
driver =
driver. Get('url')

ffpbexr
Автор

Solved my issue. To the point with just 2 extra lines of code. Thank you.

vanpeeters
Автор

Thank you so much youre literally God sent.
I've had this issue for two days now thanks a lot.

coolbonesplayz
Автор

thank you, it helped me to stay on chrome browser

tejashwareeajbale
Автор

thanks bro this problem gave me a headache❤😅😅

assersamir
Автор

You are a life saver ! Thank you so much ! i wish you the best!

ehsanreghabi
Автор

It worked for me. Thanks a lot. If possible please explain how this works theoretically means what it does to code so that it does not close the driver automatically.

adityadhee
Автор

thank you so much you deserve more subscibes bro

abdoupython
Автор

what about if iam using undetected chrome driver. it doesnt work if use UC..

muhammadrajab
Автор

Thank you so much! this video was helpful!

bhavanameravanige
Автор

mmmh, the browser stays open about 5 seconds and then also close :/ still looking for a solution

danielblechinger
Автор

im already use detach but its stay sill closed.., im using python 3.12.0

gteknomedia
Автор

How would I do the same without ending the script, to quit selenium but not the browser?

annamartina
Автор

How to fix this issue for firefox browser?

sharuz