Select row in a jqwidget table

Hello,
I would like to know how to select a row in a jqwidget table? Here is the link to the table: This example shows how to use the Grid Row Selection API.
Thanks
Kabylian

I am not familiar with the “Browser Extension”, however, try these pathways:

// first column header
id("columntablegrid")/div[1]/div[1]/div[1]/span
// second column header
id("columntablegrid")/div[2]/div[1]/div[1]/span

// first row, first column
id("contenttablegrid")/div[1]/div[1]/div[1]

// first row, second column
id("contenttablegrid")/div[1]/div[2]/div[1]

//second row, first column
id("contenttablegrid")/div[2]/div[1]/div[1]

Hi grylio54,
thank you but it doesn’t work.
Kabylian

Okay, I think I didn’t format the “code” in my post above so the quotes were wrong. Anyways, perhaps then try the below and get the text from the cell.

// header column 1
id("columntablegrid")/div[1]/div/div[1]/span
// header column 2
id("columntablegrid")/div[2]/div/div[1]/span

// first row, first column
id("row0grid")/div[1]/div
// first row, second column
id("row0grid")/div[2]/div

// second row, first column
id("row1grid")/div[1]/div
// second row, second column
id("row1grid")/div[2]/div

Hi grylion54,

The test case has been run on Katalon Recorder and is displayed in green but on the browser nothing happens, the row has not been selected.
Thanks for your help.

Kabylian

Hi,

I don´t use the recorder, but how about the raw xpath? Can you use it?

//*[@role="row"][1]//*[text()]

Chrome:
grafik

Hi luju,

Thank you. I tested your solution but the result is the same. The row is not selected in the browser.
I finally found a solution. It is to use the runScript command of Katalon Recorder with the following script: $("#grid").jqxGrid(‘selectrow’, 0);
Thanks again.

Kabylian.

1 Like