generate functionWed, 11 Jan 2023

in the line driver.find_element(By.NAME, "ctl00$ContentPlaceHolder1$txtSelDataInicio").send_keys(ultimaData) before filling the content of that element with the value of ultimaData, it is necessary to erase what is in ctl00$ContentPlaceHolder1$txtSelDataInicio

def enterData(driver, field_name, value): elem = driver.find_element_by_name(field_name) elem.clear() elem.send_keys(value)

Questions about programming?Chat with your personal AI assistant