<input type="text" class="form-control" value="2020-01-23 23:59">
I want to change the value (2020-01-23 23:59) to (2020-01-01 23:59). Here the code I wrote, it is indeed changing the date on like the frontend so when I look at the webpage the date has changed. However, when I look at the Html file it is still the previous date. How can I change the date to whatever date I want and so that change is applied in the backend of the website.
(my code)
time.sleep(2)
startTime = self.driver.find_element_by_xpath('//*[@id="page-wrapper"]/div[2]/div[1]/div/div[3]/div/input')
self.driver.execute_script("arguments[0].value = arguments[1]", startTime, "2020-01-01 00:00")
endTime = self.driver.find_element_by_xpath('//*[@id="page-wrapper"]/div[2]/div[1]/div/div[5]/div/input')
self.driver.execute_script("arguments[0].value = arguments[1]", endTime, "2020-01-01 23:59")
time.sleep(30)