https://github.com/dbspt/scorpion-core
Framework (core) for web automation testing using selenium-js, cucumber and typescript.
https://github.com/dbspt/scorpion-core
Last synced: about 2 months ago
JSON representation
Framework (core) for web automation testing using selenium-js, cucumber and typescript.
- Host: GitHub
- URL: https://github.com/dbspt/scorpion-core
- Owner: dbspt
- License: mit
- Created: 2022-07-17T18:38:02.000Z (almost 4 years ago)
- Default Branch: development
- Last Pushed: 2022-09-15T18:57:47.000Z (almost 4 years ago)
- Last Synced: 2025-01-18T18:53:34.147Z (over 1 year ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Scorpion Core
[](http://commitizen.github.io/cz-cli/)
Framework (core) for web automation testing using selenium-js, cucumber and typescript.
## Supported steps
### Asserts
```cucumber
I assert that the "locator" element contains the "attribute" attribute
I assert that the "locator" element does not contain the "attribute" attribute
I assert that the "locator" element has the "attribute" attribute
I assert that the "locator" element does not have the "attribute" attribute
I assert that the "locator" element has the "cssProperty" property
I assert that the "locator" element does not have the "cssProperty" property
I assert that the page document contains the text "text"
I assert that the page document does not contain the text "text"
I assert that the "locator" element contains the text "text"
I assert that the "locator" element does not contain the text "text"
I assert see "locator" checked
I assert see "locator" unchecked
I assert to be in "text"
```
### Element Interaction
```cucumber
I click on "locator"
I click on the text "text"
I click on the tag "label"
I fill the "locator" field with "text"
I clean the field "locator"
```
### Finding Elements
```cucumber
I wait for the "locator" element to be visible
I wait for the "locator" element to be enabled
I wait for element "locator" to become stale
```
### Frames
```cucumber
I should see the frame "locator"
I should leave frame
```
### Navigation
```cucumber
I am on "url"
I navigate forward
I navigate back
I refresh page
I clear cookies
I add a cookie "name" with value "value"
```
### Screenshot
```cucumber
I take a screenshot
```
### User Prompts
```cucumber
I accept dialog box
I dismiss dialog box
I fill in the text "text" in the dialog box
```
### Wait
```cucumber
I wait for 10 seconds
I wait for 100 milliseconds
I set timeout as 10 seconds
I set timeout as 1 minutes
```
### Window Related
```cucumber
I maximize the browser window
I open the link "url" in new tab
I open the link "url" in new window
I switch tabs in 0 position of the browser
I close tab
I close window
```