1.5.3 • Published 5 years ago
cypress-mis-commands v1.5.3
Introduction
Additional custom commands for Cy
Install
Add git repo to your package.json
dependencies
"cypress-mis-commands": "*"
or use npm install
and save
npm install --save-dev cypress-mis-commands
Configure
Commands file
The extension provides multiple sets of commands. You can import the ones you need. Example support/index.js
file.
import mis from 'cypress-mis-commands';
mis.loadGeneralCommands();
mis.loadApexCommands();
import './commands.js';
Usage
cy.fill(regionId, data, submit = false)
cy.fill('#regionId', {'#P100_NAME': 'My Name'}, true);
cy.iframe(iframeId, waitFor = 'body')
cy.iframe('#myFrame', '#P100_NAME').then(frame => {
cy.wrap(frame).find('#P100_NAME').type('My Name');
}
// We can also handle nested iframes because our iframe command can be called in a chained/recursive manner
cy.iframe('#parentFrame').then(parentFrame => {
cy.wrap(parentFrame).find('#someParentElement').type('test');
cy.iframe(parentFrame).then(childFrame => {
cy.wrap(childFrame).find('#someChildElement').type('test');
});
});
// If we don't need to do anything with the parent frame, we can also do
cy.iframe('#parentFrame')
.iframe('#childFrame')
.then(frame => {
// do stuff
});
cy.page(pageId)
cy.page(200);
1.5.3
5 years ago
1.5.2
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.0.1
6 years ago