I want to change an attribute and give it a value with selenium
I have 19 span with the same attribute data-checked <span id="u25-accordion-panel–61" data-type="checkbox" data-checked style="display: none;"></span> I want to change the attribute in all the spans, I tried with 1 but I get the following error options = webdriver.EdgeOptions() options.add_argument("start-maximized") driver = webdriver.Edge(options=options) driver.implicitly_wait(20) driver.get( ‘https://www.udemy.com/course/angular-10-fundamentos-8-app/’) elem = driver.find_element(By.CSS_SELECTOR, ‘#udemy > div.ud-main-content-wrapper > div.ud-main-content > div… Read More I want to change an attribute and give it a value with selenium