I want to click number of checkbox which is generated dynamically. How to perform that task? please help. Given Below is the Xpath sequence of the checkbox
//*[@id="220077552"]/td[1]/app-checkbox/label
//*[@id="220219925"]/td[1]/app-checkbox/label
//*[@id="220077552"]/td[1]/app-checkbox/label
each time this id is generated automatically.
What should be used to find the element?
I tried this code below
WaitUtils.waitForDataToLoad(getDriver());
List<WebElement> memberSelection = getDriver().findElements(By.cssSelector(".form-checkbox.notext"));
for(int count =1; count<=10; count++){
memberSelection.get(count).click();
}