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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…