Commit Graph

239 Commits

Author SHA1 Message Date
Michael Mintz 5d7f58665a Better error-handling 2021-10-18 22:59:52 -04:00
Michael Mintz f11300b61c Fail fast if using Recorder Mode without Chrome or Edge 2021-10-08 00:44:22 -04:00
Michael Mintz 4092d0c887 Improve Dashboard updates during multi-threaded mode 2021-09-29 03:16:16 -04:00
Michael Mintz 3b1d438262 Update the built-in ad-blocker 2021-09-29 03:11:54 -04:00
Michael Mintz e35e85cd33 Add better error-handling for Recorder Mode 2021-09-29 03:05:23 -04:00
Michael Mintz b8000bb750 Update pytest_plugin.py 2021-09-26 15:02:00 -04:00
Michael Mintz 8924f0b33d Make improvements to the SeleniumBase Dashboard 2021-09-20 03:19:42 -04:00
Michael Mintz 072ecc8185 Add "Recorder Mode" 2021-09-20 03:09:31 -04:00
Michael Mintz a5d90cebdb Use the "https" protocol for the Grid Server if the port is "443" 2021-09-06 12:57:12 -04:00
Michael Mintz 5c47878b7f Add a "--xvfb" option to run tests using an Xvfb virtual display 2021-09-01 00:25:05 -04:00
Michael Mintz d3f0b2fa8c Add "--screenshot" as an alternative to "--save-screenshot" 2021-08-23 22:52:00 -04:00
Michael Mintz df53d28dd6 Add "--slowmo" as an alternative to "--slow-mode" 2021-08-23 22:51:12 -04:00
Michael Mintz ff4806fcb4 Update the Pytest plugin 2021-07-18 16:35:29 -04:00
Michael Mintz 8bcc0cf86e Add option "--ie" as a shortcut for "--browser=ie" 2021-06-04 21:51:50 -04:00
Michael Mintz 6bce984b1c Add options to set custom Firefox args and preferences 2021-05-22 14:09:59 -04:00
Michael Mintz 546e9bcbd7 Add protocol option for selecting a Selenium Grid server 2021-05-18 14:21:45 -04:00
Michael Mintz 093c1063cd Optimize code with syntax refactoring 2021-05-03 22:38:13 -04:00
Michael Mintz 3c7a65c142 Improve Dashboard logging 2021-04-30 16:58:10 -04:00
Michael Mintz c2769461a4 Make Dashboard resources available locally (CSS / JS) 2021-04-30 16:37:46 -04:00
Michael Mintz ab09f50fcc Fix issue with browser selection during multithreaded mode 2021-04-30 15:58:40 -04:00
Michael Mintz 35d563eb95 Add methods for setting and resetting default timeout values 2021-04-21 20:26:26 -04:00
Michael Mintz 887c83e912 Add the ability to run parallel tests when using the Dashboard 2021-04-16 02:49:16 -04:00
Michael Mintz e1087d7021 Make updates to the "_multithreaded" variable 2021-04-16 02:45:52 -04:00
Michael Mintz 1dfcf07dea Optimize Dashboard output and favicon display 2021-04-10 13:11:17 -04:00
Michael Mintz 02c84f9463 Add custom Chromium args with: --chromium-arg="ARG,ARG" 2021-03-23 15:00:21 -04:00
Michael Mintz 540e406b68 Empty the "./downloaded_files/" folder when a new run begins 2021-03-19 00:15:35 -04:00
Michael Mintz 072b93ef68 Add the "--interval=SECONDS" option for autoplaying tour steps 2021-03-06 23:30:58 -05:00
Michael Mintz adb19981ff Fix the dashboard pie chart on html reports for path changes 2021-03-02 22:51:22 -05:00
Michael Mintz e3a1ba5b05 Update error message when specifying more than 1 browser 2021-02-25 02:31:16 -05:00
Michael Mintz 85a20d0c54 Add option: "--archive-downloads" to keep downloaded files 2021-02-18 23:46:27 -05:00
Michael Mintz caec440bef Update the docs 2021-02-05 23:26:25 -05:00
Michael Mintz 9007c5ad0e Better compatibility with pytest plugins that force early exits 2021-02-05 23:25:16 -05:00
Michael Mintz 4a814577bd Update plugin descriptions shown by "pytest --help" 2021-01-31 15:24:58 -05:00
Michael Mintz 20fddd075f Update dashboard timing for LiveJS updates 2021-01-31 15:16:56 -05:00
Michael Mintz c0d92bdb5e Fix issue with deselected tests appearing in the dashboard 2021-01-27 02:13:17 -05:00
Michael Mintz 42ad7e75dc Add shortcuts for selecting the browser type 2021-01-24 02:47:20 -05:00
Michael Mintz 3e7f5e4448 Make sure the Dashboard refreshes properly on update 2021-01-21 00:38:20 -05:00
Michael Mintz 01ce846846 Make sure that untested Dashboard tests are displayed 2021-01-21 00:33:43 -05:00
Michael Mintz fbbc687dd4 Update console output location of the dashboard path 2021-01-13 13:48:12 -05:00
Michael Mintz abc591460c Fix dashboard issue caused by pytest-rerunfailures 2021-01-13 13:46:45 -05:00
Michael Mintz 6279103e3a Update output on Linux 2021-01-13 13:36:43 -05:00
Martin Michlmayr d26ee17b77
Fix typos 2020-12-24 11:03:53 +08:00
Michael Mintz ce02469fa7 Add missing Dashboard documentation 2020-12-20 16:47:30 -05:00
Michael Mintz 9393240472 Update the Dashboard console output notification 2020-12-20 16:43:46 -05:00
Michael Mintz dfd0ad1eff Update the Dashboard notification color 2020-12-19 14:43:08 -05:00
Michael Mintz 244d063e77 Improve the SeleniumBase Dashboard functionality 2020-12-19 00:13:16 -05:00
Michael Mintz ac28e5abec Add the "--dashboard" option to create a dashboard 2020-12-18 01:24:56 -05:00
Michael Mintz ff0a18a2ec Add the "pytester" plugin to get the "testdir" fixture 2020-12-05 02:02:05 -05:00
Michael Mintz fb3f669e1d Add "--remote-debug" for Chrome's Remote Debugger 2020-12-03 23:23:48 -05:00
Michael Mintz f4f81d71d6 Update the docs 2020-11-17 19:22:12 -05:00
Michael Mintz da45232967 Make sure "--pdb" doesn't skip tearDown() on failures 2020-10-22 09:35:02 -04:00
Michael Mintz 375e3d4ebd Add cmd option "--disable-ws". (Chrome Web Security) 2020-10-22 09:29:27 -04:00
Michael Mintz cd89abefaf Update the docs 2020-10-12 09:46:06 -04:00
Michael Mintz df0315ff0a Make sure to initialize "colorama" before using it 2020-09-09 17:20:21 -04:00
Michael Mintz 648142c6f5 Add option: "--enable-ws" to enable Chrome's Web Security 2020-08-29 21:34:00 -04:00
Michael Mintz a6db75eb10 Add the ability to set the browser's Language/Locale 2020-08-20 02:15:06 -04:00
Michael Mintz 15a3be88ce Update the docs 2020-08-17 16:28:28 -04:00
Michael Mintz 3baf9fe064 Make logging improvements to the sb pytest fixture 2020-08-14 01:58:16 -04:00
Michael Mintz 3162f856b4 Update the docs 2020-08-10 23:56:32 -04:00
Michael Mintz 3a26df6546 Refactoring command line options and docs 2020-08-08 01:04:44 -04:00
Michael Mintz c3051e6312 Can load a Chrome extension with "--crx=[CRX_FILE]" 2020-07-22 22:51:03 -04:00
Michael Mintz 5d8ac4ecdc Add the "--swiftshader" command-line option 2020-07-10 21:17:19 -04:00
Michael Mintz 9e052e8259 Add a command-line option to block images in tests 2020-07-09 16:08:32 -04:00
Michael Mintz 45c48f9e26 Add "--rs" as a simplified command arg for "--reuse-session" 2020-06-10 05:03:22 -04:00
Michael Mintz 1ba71c3b88 Fix issues with setting the time-limit in tests 2020-05-25 04:15:38 -04:00
Michael Mintz 19b7324d2f Update command-line parser for ad-blocking 2020-05-18 16:02:04 -04:00
Michael Mintz 39e4e9c4e7 Allow multithreaded browser sessions to be reused when specified 2020-05-07 02:47:14 -04:00
Michael Mintz 288137bf3b Update docs for always-enabled command-line options 2020-05-03 16:15:35 -04:00
Michael Mintz aef5904bdf "--crumbs": Delete cookies between tests reusing sessions 2020-05-03 15:58:49 -04:00
Michael Mintz 360412c736 Update comments. 2020-05-01 23:58:53 -04:00
Michael Mintz e037dbc1ed Add additional ways to set the user agent 2020-04-24 19:28:34 -04:00
Michael Mintz efa7a7c8f9 Add a cmd option to use Chrome's Automation Extension 2020-04-21 14:21:52 -04:00
Michael Mintz 4ed760cba4 Add more custom parameters for passing into tests 2020-04-21 02:33:31 -04:00
Michael Mintz 75f49a1191 Add option to set capabilities with --cap-string=STRING 2020-04-19 14:40:36 -04:00
Michael Mintz 211a0aad73 Update command line options 2020-04-18 01:25:02 -04:00
Michael Mintz 75427e9446 Add Guest Mode option (and DevTools) for Chrome 2020-04-18 01:11:03 -04:00
Michael Mintz a08d343e05 Add a docstring 2020-04-09 02:40:14 -04:00
Michael Mintz 4beab88474 Add "no-sandbox" and "disable-gpu" options 2020-03-16 00:43:44 -04:00
Michael Mintz 53f4240aac Update comments and ReadMe files 2020-02-18 02:10:36 -05:00
Michael Mintz 2e58c2cada Add the --time-limit=s feature to fail long-running tests 2020-01-15 03:16:04 -05:00
Michael Mintz b3303424ef Update detection of multithreaded use 2020-01-15 02:57:45 -05:00
Michael Mintz ebec788faa Remove pytest-timeout (not thread-safe) and prevent use 2020-01-15 02:54:52 -05:00
Michael Mintz 5c96940352 Improve the logging system 2020-01-13 02:56:34 -05:00
Michael Mintz d4795d1eaf Better detection of multithreading to alter test behavior 2020-01-13 02:46:00 -05:00
Michael Mintz 5767232bfc Add option for Chrome's Incognito mode with "--incognito" 2020-01-07 23:45:30 -05:00
Michael Mintz c0247ed909 Add mobile device testing to SeleniumBase 2019-12-09 04:03:45 -05:00
Michael Mintz 0673de7f5a Refactor docs and command-line arguments 2019-12-03 00:23:18 -05:00
Michael Mintz beaccc9393 Add option to reuse the browser session between tests 2019-12-02 01:57:05 -05:00
Michael Mintz 7379503368 Add "Slow Mode". Usage: "--slow" 2019-11-07 01:31:58 -05:00
Michael Mintz 9d30bca2d3 Update the docs 2019-11-02 23:15:20 -04:00
Michael Mintz d05cc17d8a Update and refactor command line arguments 2019-09-16 19:20:21 -04:00
Michael Mintz be736f575c Rename maximize_window option to resolve method conflict 2019-08-30 21:34:18 -04:00
Michael Mintz 41fa128665 Add a command-line option to maximize the browser window 2019-08-14 01:38:38 -04:00
Michael Mintz 276e9ab62f Add a settings file parser for overriding default settings 2019-08-09 04:27:34 -04:00
Michael Mintz 0ac11b1516 Add the "sb" pytest fixture 2019-08-02 02:20:46 -04:00
Michael Mintz 5c15469da3 Add the command-line option for start_page 2019-07-25 20:29:41 -04:00
Michael Mintz 529a0a3ca2 Update command-line descriptions 2019-07-25 20:20:14 -04:00
Michael Mintz 5ab75a3322 Make --headless mode the default setting on Linux 2019-07-25 13:57:56 -04:00
Michael Mintz e08e27a59a Add --headed parameter to override Linux headless mode 2019-07-25 13:50:41 -04:00
Michael Mintz e81d6493f8 Simplify demo_mode parameter 2019-07-21 14:13:25 -04:00
Michael Mintz b1ea65d74d Refactor command-line arguments (pytest) 2019-07-16 01:23:27 -04:00
Michael Mintz 1d6f764e18 Update comments 2019-07-15 00:06:43 -04:00
Michael Mintz f15546b168 Update command-line parameters for Chrome control 2019-07-14 01:05:47 -04:00
Michael Mintz b5996f946b Better error handling of screenshot files 2019-04-15 03:12:33 -04:00
Michael Mintz 3f4251a931 Add utf-8 encoding into header 2019-04-15 03:11:37 -04:00
Michael Mintz 243fecc7b7 Pass pytest_html_report to base_case.BaseCase 2019-04-14 04:58:39 -04:00
Michael Mintz dfbe75ca71 Add command line option to set/reset the visual baseline 2019-04-01 02:15:36 -04:00
Michael Mintz 2d13833f8d Add a command-line option to disable the Content Security Policy 2019-03-20 03:13:46 -04:00
Michael Mintz d0f973a8f2 Update help comments 2019-03-16 01:49:56 -04:00
Michael Mintz 0a5b20311e Add a command-line option to archive old log files. 2019-03-05 00:58:04 -05:00
Michael Mintz 6ad3dd33c7 Add the ability to save screenshots at the end of tests. 2019-03-04 23:34:06 -05:00
Michael Mintz 18539c90c6 Add the ability to set the User-Agent string for the browser 2019-02-28 04:45:14 -05:00
Michael Mintz c0e3dc402f Use sb_config instead of pytest.config for command-line options 2019-01-23 14:39:56 -05:00
Michael Mintz 226dadd3fb Spell "JavaScript" like this 2018-11-29 02:42:38 -05:00
Michael Mintz 0989af9cf0 Add pytest option to check for js errors on page loads 2018-11-29 02:06:19 -05:00
Michael Mintz 81b2553dbd Add --cap_file command line option for desired capabilities 2018-11-21 03:08:26 -05:00
Michael Mintz 4813354af5 Update environment options 2018-10-18 15:52:34 -04:00
Michael Mintz 4e33ceff60 Make pytest browser selection case-insensitive 2018-10-18 15:51:05 -04:00
Michael Mintz ea661a266d Handle cleanup of proxy zip file between test runs 2018-10-17 18:17:20 -04:00
Michael Mintz efd408ba1b Flake8 refactoring 2018-08-30 01:51:38 -04:00
Michael Mintz 15d7149ac5 Add a cmd arg for handling Messenger message duration 2018-05-07 01:03:29 -04:00
Michael Mintz 0625f2d14a Update comments 2018-04-05 23:21:23 -04:00
Michael Mintz 426e031ba4 Add ad_block command line arg for Pytest 2018-04-05 23:19:50 -04:00
Michael Mintz 39a8c9f479 Update pytest plugin 2018-03-25 21:12:59 -04:00
Michael Mintz 2fa21a9d45 Have pytest and nosetests automatically use the logging plugin 2018-03-04 17:57:15 -05:00
Michael Mintz 4361e22250 Add a command line option to set a proxy server for tests to use. 2018-03-04 12:48:50 -05:00
Michael Mintz 45f6731dee Thread-safe handling of log files for multithreaded test runs. 2018-03-04 10:43:42 -05:00
Michael Mintz d5085f4dd6 Better exception handling. 2018-02-08 18:00:25 -05:00
Michael Mintz eef973f917 Set the pytest selenium plugin to be active by default. 2018-02-08 15:04:51 -05:00
Michael Mintz 08cd7f0275 Adding "server" and "port" run options for pytest (for Selenium Grid) 2018-02-08 15:00:03 -05:00
Michael Mintz 9f699845fa Adding environment options 2018-02-01 17:04:13 -05:00
Michael Mintz 68c6ff9013 Better error handling for pytest teardown 2017-05-18 12:16:57 -04:00
Michael Mintz f30e5c8eaf Suppress some output in pytest teardown 2017-05-17 19:16:56 -04:00
ktp420 5365b37170 Remove commented out code 2017-05-16 15:34:48 -04:00
Ketan Patel 1bf4092bf3 close out zombie browser process if setup fails 2017-05-16 14:57:46 -04:00
Michael Mintz 33d09da69b Add timeout_multiplier option to boost default timeout lengths 2017-04-28 20:39:32 -04:00
Ketan Patel c1f0bd4e49 add ability save pytest html reports with screenshots 2017-04-27 15:33:27 -04:00
Ketan Patel be6fc40b08 flake8 fixes 2017-04-27 10:48:33 -04:00
Ketan Patel d792b4a093 add pytest plugin entry point so does not require coping conftest.py file 2017-04-27 10:35:33 -04:00