I want to pass variable to element. My html is like
<input class="form-control" data-bind="textInput: code, attr: { id: 'myTable_code_' + $index() }" type="text" id="myTable_code_0" style="">
I declared element like
[FindsBy(How = How.Id, Using = "myTable_code_" + myVariable), CacheLookup]
private HtmlElement _Code;
But offcourse that is not working. Has anyone idea on how to pass varialbe to attribute. I am using c#