Commands, Methods, Keywords and Syntax examples
https://devexpress.github.io/testcafe/documentation/test-api/actions/
- typeText
- click
- Selector('.classname').find('h1');
- <const>.innerText
- expect(Selector('#<id>').innerText).eql('Thank you,John Smith!');
- fixture `My fixture`.page `http://www.example.com/`;
- .setNativeDialogHandler(() => true)
- const location = await t.eval(() => window.location); await t.expect(location.pathname).eql('/testcafe/example/thank-you.html');
const sometext = await Selector('#main-form > div > div.row > div.column.col-1 > fieldset:nth-child(1) > legend').innerText; -- will this worknpx testcafe chrome SampleTest.js -- to run specific javascript file
Comments
Post a Comment