I've a Windows 10, 64 bit system.
My simple selenium code below runs without exception/error, but opens a blank page instead of opening google.com
and its the same behavior with any url, not only google.com
:
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
#Chrome browser version 91.0.4472.77
# Crome-Driver version used: 91.0.4472.19 <--latest
url='https://www.google.co.in/'
driver_path='F:\Path\chromedriver_win32\chromedriver.exe'
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--ignore-certificate-errors')
chrome_options.add_argument('--ignore-ssl-errors')
#chrome_options.add_argument("--headless")
driver = webdriver.Chrome(executable_path= driver_path, options= chrome_options)
driver.get(url)
Output I get:
Can someone tell me , what's going on here ? I have written selenium codes before (on different machines though), but never faced such elementary issues, and having no clue how to solve it, because of the code reporting no error at all.
I did go through some other related questions posted, but don't see any answers/solutions posted ther as well:
Selenium webdriver loads a blank page instead of the target URL