Hi there,
My xpath to expand the first row is set as //div[5]/div/table/tbody/tr[contains(td[4],‘TS4kat’})]/td[1]/input
(Note: it is 4th column not 3 as per html.)
now I want to expand all the rows below it. For that I use parametrization. Thus, I update the xpath as //div[5]/div/table/tbody/tr[contains(td[4],${expand})]/td[1]/input
I define variable as expand_1 , type= list , values= [“Ts2kat”,“TS3kat”,“TS1kat”]
I apply for loop as below,
for (def expand : (1…4)) {
WebUI.click(findTestObject(‘require risk master/Test strategy/Page_Validator/input_expnad TS’, [(‘expand’) : expand_1]))
expand_1 +=1
Now my question is , am I missing something? Any wrong step to define parameterization? whole execution only expand first row repeatedly.