Skip to content

Commit 40fed31

Browse files
chore: add to git
0 parents  commit 40fed31

23 files changed

+4301
-0
lines changed

.github/dependabot.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: ".github/workflows"
5+
schedule:
6+
interval: "daily"
7+
groups:
8+
gha:
9+
patterns:
10+
- "*"
11+
- package-ecosystem: "npm"
12+
directory: "."
13+
schedule:
14+
interval: "weekly"
15+
day: "saturday"
16+
versioning-strategy: increase
17+
groups:
18+
npm:
19+
patterns:
20+
- "*"
21+
- package-ecosystem: "pip"
22+
directory: "."
23+
schedule:
24+
interval: "daily"
25+
versioning-strategy: increase
26+
groups:
27+
pip:
28+
patterns:
29+
- "*"

.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
strategy:
14+
matrix:
15+
os: [macos-12, ubuntu-22.04, windows-2022]
16+
fail-fast: false
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/[email protected]
21+
- name: Use Node version defined in manifest
22+
uses: volta-cli/action@v4
23+
- name: Node.js version
24+
run: node -v
25+
- name: npm version
26+
run: npm -v
27+
- name: Setup Python
28+
uses: actions/[email protected]
29+
with:
30+
python-version: "3.10.0"
31+
cache: pip
32+
- name: Install Node dependencies
33+
run: npm ci
34+
- name: Run Node tests
35+
run: npm t
36+
- name: Install Python dependencies
37+
run: python3 -m pipenv install
38+
- name: Run Python tests
39+
run: python3 -m pytest ./py/selenium/builder/*.py

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
3+
__pycache__

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nwjs_build_type=sdk

CODE_OF_CONDUCT.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# "No Ideologies" Code of Conduct
2+
3+
The following are the guidelines we expect our community members and maintainers to follow.
4+
5+
---
6+
7+
## Terminology and Scope
8+
9+
**What defines a "maintainer"?**
10+
11+
- A maintainer is anyone that interacts with the community on behalf of this project. Amount of code written is not a qualifier. A maintainer may include those who solely help in support roles such as in resolving issues, improving documentation, administrating or moderating forums/chatrooms, or any other non-coding specific roles. Maintainers also include those that are responsible for the building and upkeep of the project.
12+
13+
**What defines a "community member"?**
14+
15+
- Anyone interacting with this project directly, including maintainers.
16+
17+
**What is the scope of these guidelines?**
18+
19+
- These guidelines apply only to this project and forms of communication directly related to it, such as issue trackers, forums, chatrooms, and in person events specific to this project. If a member is violating these guidelines outside of this project or on other platforms, that is beyond our scope and any grievances should be handled on those platforms.
20+
21+
**Discussing the guidelines:**
22+
23+
- Discussions around these guidelines, improving, updating, or altering them, is permitted so long as the discussions do not violate any existing guidelines.
24+
25+
---
26+
27+
## Guidelines
28+
29+
### Guidelines for community members
30+
31+
This project is technical in nature and not based around any particular non-technical ideology. As such, communication that is based primarily around ideologies unrelated to the technologies used by this repository are not permitted.
32+
33+
Any discussion or communication that is primarily focused around an ideology, be it about race, gender, politics, religion, or anything else non-technical, is not allowed. Everyone has their own ideological preferences, beliefs, and opinions. We do not seek to marginalize, exclude, or judge anyone for their ideologies. To prevent conflict between those with differing or opposing ideologies, all communication on these subjects are prohibited. Some discussions around these topics may be important, however this project is not the proper channel for these discussions.
34+
35+
### Guidelines for maintainers
36+
37+
- Maintainers must abide by the same rules as all other community members mentioned above. However, in addition, maintainers are held to a higher standard, explained below.
38+
- Maintainers should answer all questions politely.
39+
- If someone is upset or angry about something, it's probably because it's difficult to use, so thank them for bringing it to your attention and address ways to solve the problem. Maintainers should focus on the content of the message, and not on how it was delivered.
40+
- A maintainer should seek to update members when an issue they brought up is resolved.
41+
42+
---
43+
44+
## Appropriate response to violations
45+
46+
How to respond to a community member or maintainer violating a guideline.
47+
48+
1. If an issue is created that violates a guideline a maintainer should close and lock the issue, explaining "This issue is in violation of our code of conduct. Please review it before posting again." with a link to this document.
49+
1. If a member repeatedly violates the guidelines established in this document, they should be politely warned that continuing to violate the rules may result in being banned from the community. This means revoking access and support to interactions relating directly to the project (issue trackers, chatrooms, forums, in person events, etc.). However, they may continue to use the technology in accordance with its license.
50+
1. If a maintainer is in violation of a guideline, they should be informed of such with a link to this document. If additional actions are required of the maintainer but not taken, then other maintainers should be informed of these inactions.
51+
1. If a maintainer repeatedly violates the guidelines established in this document, they should be politely warned that continuing to violate the rules may result in being banned from the community. This means revoking access and support to interactions relating directly to the project (issue trackers, chatrooms, forums, in person events, etc.). However, they may continue to use the technology in accordance with its license. In addition, future contributions to this project may be ignored as well.
52+
53+
---
54+
55+
Based on version 1.0.3 from https://github.com/CodifiedConduct/coc-no-ideologies

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2023 NW.js Utilities
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Pipfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
selenium = "4.16.0"
8+
pytest = "7.4.3"
9+
urllib3 = "2.2.1"
10+
11+
[dev-packages]
12+
13+
[requires]
14+
python_version = "3.10"

Pipfile.lock

+178
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# NW.js Testing Examples
2+
3+
## Getting Started
4+
5+
### JavaScript
6+
7+
1. `npm i` to install Node modules
8+
1. `npm t` to run tests
9+
10+
### Python
11+
12+
1. `npm i` to install Node modules
13+
1. `python3 -m pipenv install` to install Python dependencies
14+
1. `python3 -m pytest ./py/selenium/builder/test.py` to run tests
15+
16+
## Languages
17+
18+
- Java
19+
- JavaScript
20+
- Python

js/puppeteer/index.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Puppeteer</title>
8+
</head>
9+
10+
<body id="test">Hello, World!</body>
11+
12+
</html>

js/puppeteer/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "nw-selenium-example",
3+
"main": "index.html",
4+
"type": "module"
5+
}

0 commit comments

Comments
 (0)