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.
 
 
 
 
 

13 lines
471 B

import { Selector } from 'testcafe';
class Home {
getStarted = Selector('.ant-card-head-title');
createButton = Selector('button').withExactText('Create your first Network');
cardTitles = Selector('.ant-card-head-title');
getStartedText = () => this.getStarted.innerText;
clickCreateButton = async (t: TestController) => t.click(this.createButton);
getCardTitleWithText = (text: string) => this.cardTitles.withExactText(text);
}
export default new Home();