loopCounter in xpath

Below xpath does not work.

//body/div[1]/div[1]/div[2]/div[1]/div[3]/div[1]/div[2]/div[2]/div[1]/table[1]/tbody[1]/tr[${loopCounter}]/td[3]

also I tried this

//body/div[1]/div[1]/div[2]/div[1]/div[3]/div[1]/div[2]/div[2]/div[1]/table[1]/tbody[1]/tr[“${loopCounter}”]/td[3]

By the way, I test it on chrome console. It works

Exception: WA-0007|Unknown property used in expression: //body/div[1]/div[1]/div[2]/div[1]/div[3]/div[1]/div[2]/div[2]/div[1]/table[1]/tbody[1]/tr[${loopCounter}]/td[3]

I ve resolved it. Unless you set sub process Multi-instance property, loopCounter is not available

1 Like