Page model-
import { Selector } from 'testcafe';
export default class Page {
constructor () {
this.nameInput = Selector('#developer-name');
}
}
Page model2-
import { Selector } from 'testcafe';
export default class Page2 {
constructor () {
this.nameInput2 = Selector('#tester-name');
}
}
common spec to instantiate the above-
import Page from './page-model';
import Page2 from './page-model2';
const page = new Page();
const page2 = new Page2();
can we have a single file\spec to instantiate above two Pages and then access all Selectors across Pages from a single reference variable?