Skip to Content
0
May 24 at 07:35 AM

SAPUI5 opa5 How can we select checkBox in SmartTable through OPA5 script

95 Views

I want to select a checkBox in Smarttable through OPA5, what i write about opa is not correct, can anyone help me?

Here is my Code.. view.xml:

<smartTable:SmartTable>

<m:Table id="MultiSelectTable" mode="MultiSelect">

......

</m: Table>

</smartTable:SmartTable>

Here is my Opa Code.. .js:

iSelectItemCheckBox: function () {

return this.waitFor({

id: "MultiSelectTable",

viewName: sViewName,

actions: function (oTable) {

oTable.setSelectedItem(0);

},

success: function () {

Opa5.assert.ok(true, "item has been selected");

},

errorMessage: "Location was not selected" });

},