In the below pic, I need to click on the icon in a row which is newly added and column1 value is stored as global variables.
Have used the below code, unable to find a solution.
WebElement userListTable = driver.findElement(
By.xpath(“//*[@id=’KendoActiveCorpUserGrid’]/div[2]/table”));
List<WebElement> rows_table = userListTable.findElements(By.xpath(“//*[@id=’KendoActiveCorpUserGrid’]/div[2]/table/tbody/tr”));
int rows_count = rows_table.size();
for (int row = 0; row < rows_count; row++){
if(ResultName.getText().equalsIgnoreCase(globalVariables.NewCorpUserName)){
}
}
Need to click on element id avaialble in that row:
//*[@id=”CGOLK90700779C”]/span/span/i[3]
ResultName is the position for which variable is stored globally.