Regarding automation of Grids using silk4j
We are facing issue at the time of automation of Grids using silk4j.Grids are not in tabular form and rows and columns values are not in the form of tr and td.
Values of locator are also changing after clicking of any grid element and it become unique for all the locator.Please suggest any solution for this issue.
RE: Regarding automation of Grids using silk4j
I would recommend logging a support incident so that an engineer can have a look at the grid and provide some advice on how best to automate it.
If this is the case, then finding the rows of your grid may be straightforward. For example:
List<DomElement> gridRows = desktop.<DomElement>findAll("//DIV[@class='row-class']");
If you can get a list of the grid rows, similar to the above, you should be able to iterate through each row and retrieve the required cell to interact with. For example:
//Get the text from the 2nd cell of the first row
String cellText = gridRows.get(0).<DomElement>find(/*).getText();