Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
304 views
in Technique[技术] by (71.8m points)

Selenium browser session closing immediately python

IM new to selenium and trying it out for the first time and noticed to have some problems

Here is my code:

from selenium import webdriver

driver = webdriver.Chrome("C:Program Files (x86)chromedriver.exe")

driver.get("https://google.com")

This just opens the website and closes immediately.

I have learnt that using IDES does that. I tried using cmd and it worked!!!

Is there any other way without using cmd and with IDE to use selenium?

Any help would be greatly appreciated!

question from:https://stackoverflow.com/questions/65903307/selenium-browser-session-closing-immediately-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...