I'm trying to automate the filling of an online form, but the input fields seem to be generated at each update having a different ID which doesn't allow the filling as the IDs are always changing.
Is there any solution? suggestions?
Code1 - In this case I can through the name="taxNumber"
<input id="vfenif-1373-inputEl" type="text" size="1" name="taxNumber" class="x-form-field x-form-required-field x-form-text x-form-focus x-field-form-focus x-field-default-form-focus" autocomplete="off" aria-invalid="false" data-errorqtip="" style="width: 100%;">
Private gc As New Selenium.ChromeDriver
...
gc.FindElementByName("taxNumber").SendKeys ("123456789")
...
Code2 In this case it works once but if you refresh the ID it changes and then it doesn't work
<td role="gridcell" class="x-grid-cell x-grid-td x-grid-cell-gridcolumn-1047 x-grid-cell-last x-unselectable "
id="ext-gen1581"><div unselectable="on" class="x-grid-cell-inner " style="text-align:left;">Submeter Pedido</div></td>
...after refresh
<td role="gridcell" class="x-grid-cell x-grid-td x-grid-cell-gridcolumn-1047 x-grid-cell-last x-unselectable "
id="ext-gen1580"><div unselectable="on" class="x-grid-cell-inner " style="text-align:left;">Submeter Pedido</div></td>