mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
589 B
26 lines
589 B
import BasePage from '../../Base'; |
|
import { GridPage } from './index'; |
|
|
|
export class RowPageObject extends BasePage { |
|
readonly grid: GridPage; |
|
|
|
constructor(grid: GridPage) { |
|
super(grid.rootPage); |
|
this.grid = grid; |
|
} |
|
|
|
get() { |
|
return this.rootPage.locator('tr.nc-grid-row'); |
|
} |
|
|
|
getRecord(index: number) { |
|
return this.get().nth(index); |
|
} |
|
|
|
// style="height: 32px;" |
|
async getRecordHeight(index: number) { |
|
const record = this.getRecord(index); |
|
const style = await record.getAttribute('style'); |
|
return style.split(':')[1].split(';')[0].trim(); |
|
} |
|
}
|
|
|