Trying to implement new example as suggested by you in Module 13-->exercise 3
we have never suggested that you don't use xpath.
please send a screen shot where you read it we will change it.
thank you.
Sorry. I could not properly convey what i want to say.
[u:3i0uluqm]Purpose of declaring checkbox values in array:[/u:3i0uluqm]
As per below screenshot, there are 2 array values. so if one of them need to be checked, we can find xpath of that particular check box and check it through selenium. But if in future, if one more record is added/deleted to this check box list then we are expected to change xpath again.
To overcome this, you suggested to check the check box of desired text without depending on xpath.
To implement above logic, all desired values that are expected to be checked are declared in an array and able to check those values. so that going forward if any new values are added/existing values deleted we can just modify array instead of modifying code.