Please mention which version of Selenium you use to run this code because the new version raises many issues. One major issue is that the Chrome browser window closes right after the window is open,
Fixed the above-mentioned issue by following the code:
opt.add_experimental_option("detach", True) # add this line to fix window closing issue
driver = webdriver.Chrome(executable_path=path_to_chromedriver, options=opt)
But still, the selenium is unable to find elements. Please check and create the code for the recent Selenium version.
Please mention which version of Selenium you use to run this code because the new version raises many issues. One major issue is that the Chrome browser window closes right after the window is open,
Fixed the above-mentioned issue by following the code:
But still, the selenium is unable to find elements. Please check and create the code for the recent Selenium version.