Chek multipl chckboxes usin 1 keyword in keyword driven fra. | Selenium Forum
M
Posted on 01/06/2016
Sir am using keyword driven framework,

i have 8 checkboxes, all sharing a pattern in xpath[variation is a part of xpath say div[index].. has index varying from 1-8
i need to check all these checkboxes on a single row of excel[i call 1 keyword & all these checkboxes get clicked]

Now framework being keyword driven, implementation is done for only 1 input value being read from excel[i can't change this]
My only thought is as follows:
will read the xpath which is like this ....sonsosno/div[pattern]...& pass on to keyword. code snippet...Here i call function to split this pattern of xpath & use the pattern as 1-8 in a for loop & click the respective checkboxes 1 by 1...

[b:1fd48092]Sir:Query: is this implementation going to be reusable ? is it really worth implementing or i go ahead by just clicking each checkbox 1 by 1 ?[/b:1fd48092]
[b:1fd48092]Please give ur inputs sir..[/b:1fd48092]

M
Replied on 02/06/2016

is tis code going to be reused the try to make generic function.

if its not reused then don't try because its going to be hassle.