1.1.2 • Published 5 years ago
easy-click v1.1.2
easy-click
Installation
- NodeJS could be download at: link
Run Auto Tests:
npm run testGenerate Html Report
npm run reportDocs:
Browser Steps
Given
Given opened page path '<url-path>'Given opened page url '<url>'Given mock the requests to an '(.*)' url with '(.*)' dataGiven mock the requests to an '(.*)' url regexp with '(.*)' data
When
When I press (back|forward|refresh)When I scroll (up|down)When I set browser view port: '(\d*)' width, '(\d*)' heightWhen I set key='<local-storage-key>', value='<local-storage-value>' in local storageWhen I (select|close) (\d*) pageWhen I (set|clear) cache
Then
Then I expect the browser url (matches|equal|contains|start with|end with) '<value>'Then I expect the page title (matches|equal|equal ignore case|equal ignore spaces|contains|contain ignore case|contain ignore spaces|start with|end with) '<title>'Then I expect the page source is ampThen I expect the (viewport|full) page is the same look as '<expected-image-name>' imageThen I expect the (viewport|full) page has look as '<expected-image-name>' image with inconsistency of (\d*) percentage
Cookie Steps
When
When I clear cookiesWhen I delete '<cookie-name>' cookieWhen I set cookie: '<cookie-name>' name, 'cookie-value' valueWhen I set '<cookie-name>' cookie into local storage '<local-storage-key>'
Then
Then I expect the cookie '<cookie-name>' name has( not)? '<expected-cookie-value>' valueThen I expect the cookie '<cookie-name>' name( not)? exist
WebElement Steps
When
When I click on '<xpath|css>' elementWhen I click on '<xpath|css>' element and wait (\d*) secondsWhen I click on '<xpath|css>' element with (\d*) indexWhen I click on '<xpath|css>' element with '<text>' textWhen I click on the '<text>' textWhen I click on '<text>' text with (\d*) indexWhen I click on '<xpath|css>' element and wait for navigationWhen I wait and click on '<xpath|css>' elementWhen I type '<value>' value into '<xpath|css>' elementWhen I type '<value>' value into '<xpath|css>' element with delay (\d*) ms for each key pressWhen I press the '<key>' keyWhen I press the '<key>' key a (\d*) timesWhen I press the '<key>' key on the '<xpath|css>' elementWhen I (blur on|focus on|hover over) '<xpath|css>' elementWhen I upload '<file-path>' file via '<xpath|css>' elementWhen I select '<value>' value in '<xpath|css>' selectWhen I clear value in '<xpath|css>' elementWhen I set '<attr-name>' attribute '<attr-value>' value into '<xpath|css>' elementWhen I (add|remove) '<class-value>' class of '<xpath|css>' elementWhen I set '<value>' value into '<xpath|css>' elementWhen I set '<xpath|css>' element (value|text) into '<local-storage-key>' local storageWhen I set '<xpath|css>' element attribute '<attribute-name>' value into '<local-storage-key>' local storageWhen I set '<xpath|css>' element selected option into '<local-storage-key>' local storageWhen I set '<xpath|css>' element options into '<local-storage-key>' local storageWhen I trigger '<event-name>' event into '<xpath|css>' elementWhen I scroll to '<css>' elementWhen I scroll to '<css>' element and wait (\d*) seconds
Then
Then I expect the '<css>' element is the same look as <image-name> imageThen I expect the '<css>' element has look as <image-name> image with inconsistency of (\d*) percentageThen I expect the element '<xpath|css>' has '<value>' valueThen I expect the '<xpath|css>' element is( not)? visibleThen I expect the element '<xpath|css>' is( not)? checkedThen I expect the element '<xpath|css>' is( not)? enabledThen I expect the element '<xpath|css>' is( not)? disabledThen I expect the element '<xpath|css>' is( not)? focusThen I expect the element '<xpath|css>' is( not)? existThen I expect the '<xpath|css>' element has( not)? selected '<option>' optionThen I expect the '<xpath|css>' element has( not)? inner html '<inner-html>'Then I expect the '<xpath|css>' element has( not)? element html '<element-html>'Then I expect the '<xpath|css>' element has( not)? '<attribute-name>' attributeThen I expect the '<xpath|css>' element has( not)? '<attribute-name>' attribute '<attribute-value>' valueThen I expect the '<xpath|css>' element( does not)? contains '<text>' textThen I expect the '<xpath|css>' element has( not)? '<text>' textThen I expect the '<xpath|css>' element has '<json-format-list-option>' optionsThen I expect the '<xpath|css>' element count (\d*) present
Waiters Steps
When
When I wait a (\d*) secondsWhen I wait for '<xpath|css>' elementWhen I wait for '<url>' urlWhen I wait for '<text>' textWhen I wait for page to loadWhen I wait until '<xpath|css>' element enableWhen I wait until '<xpath|css>' element not visibleWhen I wait for navigation
Console Steps
When
When I clear console
Then
When I expect that at least one console event with '<text>' text and '(log|debug|info|error|warning|trace)' typeWhen I expect that empty event with '<text>' text and '(log|debug|info|error|warning|trace)' type
Resource Requests(Response) Steps
When
When I clear the list of requestsWhen I wait until a request with '<url>' url is doneWhen I wait until a response with '<url>' url is done
Then
Then I expect that at least one resource requests made to '<url>' urlThen I expect that at least one resource requests made with '(GET|POST|PUT|DELETE)' methodThen I expect that a response was received with the (\d*) statusThen I expect that a response was received with the '{"content-type": /html/}' headersThen I expect that a request contains the '{"status": "OK"}' post bodyThen I expect that a response contains the '{"status": "OK"}' bodyThen I expect that at least one request is still pendingThen I expect that requests with the (\d*) status does not exist
Dialogs Steps
When
When I dismiss the dialogWhen I wait until the next dialogWhen I accept the dialogWhen I accept the '<text>' text dialog
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.3.2
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.9
6 years ago
0.2.8
6 years ago
0.2.7
6 years ago
0.2.6
6 years ago
0.2.5
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago