cuba-platform/masquerade

Table selectRow(By rowBy) should not fail if the row already selected

Closed this issue · 0 comments

We don't always know if the row selected or not (the table can be refreshed losing selection or other way selecting the first row). The idea is to use the selectRow() method to have the row being selected, no matter if it had been selected before.

  1. If the row has (selectedClass) then return the row.
  2. If the row doesn't have (selectedClass) then click and return the row.

Same for the collection method.