Webbctrl id changing dynamicaly

how to change webctrl id = totalhrs_1 to totalhrs_2 dynamically

Hi @sivagce05,

You can use directly use webctrl id = totalhrs_2 but if you are trying to validate the element and it fails then there might be no element with totalhrs_2 in that case you need to use wildcard to create a stable selector like webctrl id = totalhrs* or webctrl id = totalhrs_*.

You can use something like that.
Just incase if you need documentation here it is.


Thanks for ur Suggestion. I can used totalhrs_* and also try this totalhrs_"+val+" but it not increment…