Skip to main content

spythons

Selenium (Software Testing) practical slips (1 to 21): all code slip-wise with folder structure and file paths, guides with commands, explanations and viva questions, plus a solved Maven project for each slip.

It covers the Selenium question of each slip, not the React question.

Install

python -m pip install spythons

Use

spythons              # all code, slip by slip (Enter = next, a = all, q = quit)
spythons code 8       # code of slip 8 only
spythons code --all   # all code without pausing
spythons txt          # save ALL_SLIPS_CODE.txt in the current folder
spythons menu         # interactive menu
spythons list         # all slips
spythons start        # basics: how to write a Selenium practical
spythons show 8       # guide for slip 8
spythons get 8        # copy slip 8 project into .\slip8
spythons export       # copy everything into .\selenium-slips
spythons viva         # viva questions

If PowerShell says spythons is not recognized, use python -m spythons instead, for example python -m spythons list.

Use from Python

import spythons

print(spythons.list_slips())
print(spythons.get_code(1))
print(spythons.get_guide(1))
spythons.export_slip(1, "my_folder")

Slips

Slip Topic Runs with
1, 18 Download a file main
2, 19 Take a screenshot main
3 Signup button and registration page main
4, 13 Verify title and Wikipedia widget main
5, 20 Search three keyword combinations main
6 TestNG parallel execution TestNG
7 Cross browser testing TestNG
8 Page Object Model without Page Factory TestNG
9 Count and print hyperlinks main
10 Find broken links main
11, 16 Count radio buttons with testng.xml TestNG
12 TestNG invocationCount TestNG
14 Register a new user main
15 Basic HTML controls main
17 Log in and verify the Log out link main
21 Page Object Model with Page Factory TestNG

Running a copied project

The package does not include Java, Maven or a browser. Install a JDK (11 or newer), Maven and Google Chrome, then:

cd slip8
mvn test                      # TestNG slips
mvn test-compile exec:java    # slips with a main method
  • Slip 17: change EMAIL and PASSWORD in LoginLogout.java to your own demo account first.
  • Slips 5 and 20: Google may show a captcha. Solve it in the browser window.
  • Slip 7 uses Chrome, Edge and Firefox.
  • The programs open public practice websites, which can change or be offline.

Rebuild after changing the code

python sync.py
python -m build

Metadata

Release files for spythons 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spythons 0.1.0
File Size Uploaded Provenance Actions
spythons-0.1.0.tar.gz 53.7 kB Without provenance Details for spythons-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spythons 0.1.0
File Interpreter ABI Platform Actions
spythons-0.1.0-py3-none-any.whl Python 3 none any Details for spythons-0.1.0-py3-none-any.whl

Total release size: 157.4 kB

Release files / spythons-0.1.0.tar.gz

Download URL spythons-0.1.0.tar.gz
Size 53.7 kB
Tags Source
SHA-256 checksum
How to use checksums
23f73db7776bf79fa6e52c21236f9ddc11c0cb43cfba2eb593f95853d3e74eb6
BLAKE2b-256 checksum
How to use checksums
7c23a0d8687b1e18953f1b5dc3c2a0b4d4c1837c383804780daa9f173cd32fec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / spythons-0.1.0-py3-none-any.whl

Download URL spythons-0.1.0-py3-none-any.whl
Size 103.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb1bb85eee297e99f74bac69f408701648f6a176fafad4d20ad75a8bfb6c90c6
BLAKE2b-256 checksum
How to use checksums
990a7291b350c66a2ee25dd7f43bb1d9cfb3b92bc73eee0ab378f64e6968fac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for spythons 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page