SeleniumBase/examples/migration/protractor
Michael Mintz 0f5559ea30 Update the documentation 2023-07-08 15:12:20 -04:00
..
ReadMe.md Update the documentation 2023-07-08 15:12:20 -04:00
__init__.py Update examples 2023-02-03 00:27:36 -05:00
example_spec.js Add support for migrating from Protractor to SeleniumBase 2021-04-06 15:58:49 -04:00
example_test.py Update example tests 2023-01-25 21:09:59 -05:00
input_spec.js Add support for migrating from Protractor to SeleniumBase 2021-04-06 15:58:49 -04:00
input_test.py Update example tests 2023-01-25 21:09:59 -05:00
mat_paginator_spec.js Update examples 2021-06-04 21:55:59 -04:00
mat_paginator_test.py Update example tests 2023-05-24 22:12:47 -04:00

ReadMe.md

Support for migrating from Protractor to SeleniumBase

🔵 The Protractor/Angular tests from github.com/angular/protractor/tree/master/example have been migrated to SeleniumBase and placed in this directory.

🔵 Protractor tests that end in .spec.js will now end in _test.py for the conversion to SeleniumBase/Python format with pytest auto-discovery.

Here's a test run with pytest using --reuse-session mode and Chromium --guest mode:

$ pytest --rs -v --guest
=========================== test session starts ============================
platform darwin -- Python 3.11.2, pytest-7.4.0, pluggy-1.2.0 -- /Users/michael/.virtualenvs/sb_venv/bin/python
metadata: {'Python': '3.11.2', 'Platform': 'macOS-13.2.1-arm64-arm-64bit', 'Packages': {'pytest': '7.4.0', 'pluggy': '1.2.0'}, 'Plugins': {'html': '2.0.1', 'rerunfailures': '12.0', 'metadata': '3.0.0', 'ordering': '0.6', 'xdist': '3.3.1', 'seleniumbase': '4.15.10'}}
rootdir: /Users/michael/github/SeleniumBase/examples
configfile: pytest.ini
plugins: html-2.0.1, rerunfailures-12.0, metadata-3.0.0, ordering-0.6, xdist-3.3.1, seleniumbase-4.15.10
collected 4 items                                                                

example_test.py::AngularJSHomePageTests::test_greet_user PASSED
example_test.py::AngularJSHomePageTests::test_todo_list PASSED
input_test.py::AngularMaterialInputTests::test_invalid_input PASSED
mat_paginator_test.py::AngularMaterialPaginatorTests::test_pagination PASSED

============================ 4 passed in 4.24s =============================