Message: stale element reference: element is not attached to the page document in Python
To retrieve the details of contributions avoiding stale element reference you can use the following solution: Code Block: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC years = [] options = webdriver.ChromeOptions() options.add_argument(“start-maximized”) options.add_argument(‘disable-infobars’) driver=webdriver.Chrome(chrome_options=options, executable_path=r’C:\Utility\BrowserDrivers\chromedriver.exe’) driver.get(“https://github.com/agronholm”) contributions = WebDriverWait(driver, 5).until(EC.visibility_of_all_elements_located((By.XPATH, “//div[@class=”profile-timeline-year-list js-profile-timeline-year-list bg-white js-sticky … Read more