yuta-belmont / metamask_bf

38 stars 50 forks source link

Doesn't find elements with latest version of selenium #18

Open UmerFarooqBiomedical opened 8 months ago

UmerFarooqBiomedical commented 8 months ago

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.