There is a site for food reservation that i use to reserver food. I want to automate the reservation. There is a form with 7 checkboxes each for one day of the week. I get the checkboxes and check the days that I want and after that click the submit button. The problem is when checkboxes get checked but the food but after clicking the button when the page reloads the checkboxes are not checked (this means that the food isnt reserved). Actually this is what i do with any usual browser and the checkboxes are cheched after reload of the page. there is a problem with checking the checkboxes. Ive tried these codes for checking them:
element.SetAttribute("checked", "checked");
element.InvokeMember("Click");
also when program is running if i do click myself (not using code) it works but if i check 2 checkboxes with code and another one myself it doesnt work as well.