I would like to set a value on a webpage using windows application form and using GetElementById and SetAttribute("value", desiredValue) I have created a command list which navigates through the webpage and puts in values:
currentCommands.Enqueue(new Command("setvalue", "45",
"setPublishMin"));
whereas "setPublishMin" links to the ID of the textbox on the wepage via a commandHandler class and csv file The ID looks like this
id="WebpageAdminTheme_ComponentList_ctl02_wtExpandableInnerBlock_wtExpandableSe ction__Sets"]
Once I have filled in the textbox and add select another textbox in which I want to pass different values the ID will be the same apart from "ctl02" changing to "ctl04" etc. in the ID. So I was wondering if there is an easier way to pass over the values than by using IDs