Skip to content

Releases: seleniumbase/SeleniumBase

Fix Dashboard display

21 Jan 06:02
dbfb173
Compare
Choose a tag to compare

Fix Dashboard display

  • Make sure that untested Dashboard tests are displayed
  • Make sure that the Dashboard refreshes properly on updates

Also update a Python dependency

  • PyYAML>=5.4.1;python_version>="3.6"

Update Python dependencies

20 Jan 23:35
dffa3c6
Compare
Choose a tag to compare

Update Python dependencies

  • pytest-cov==2.11.1
  • prompt-toolkit==3.0.11

Update Python dependencies

20 Jan 05:31
e4b8643
Compare
Choose a tag to compare

Update Python dependencies

  • setuptools>=51.3.3;python_version>="3.6"
  • virtualenv>=20.4.0
  • pytest-cov==2.11.0

Update Python dependencies

16 Jan 01:45
f2a88d0
Compare
Choose a tag to compare

Update Python dependencies

  • rich==9.8.2;python_version>="3.6"

Update console scripts and the dashboard

13 Jan 19:13
da84c40
Compare
Choose a tag to compare

Update console scripts and the dashboard

  • Update sbase mkdir DIR [OPTIONS] with the new -b / --basic option.
    -- This creates a new SeleniumBase folder with just config files (without example tests).
  • Fix issue with processing non-SeleniumBase dashboard entries (ones that use raw pytest).
  • Fix a dashboard issue caused by pytest-rerunfailures creating duplicate test entries.
  • Update the console output location of the dashboard path. (Display before first test runs.)
  • Update Python dependencies
    -- pygments==2.7.4;python_version>="3.5"
    -- virtualenv>=20.3.1
    -- rich==9.8.1;python_version>="3.6"
    -- allure-pytest==2.8.31;python_version>="3.5"

Type sbase options to list common pytest/SeleniumBase options:

$ sbase options

  **  pytest CLI Options  ** 

Here are some common pytest options to use with SeleniumBase:

--browser=BROWSER  (The web browser to use. Default: "chrome".)
--headless  (Run tests headlessly. Default mode on Linux OS.)
--demo  (Slow down and visually see test actions as they occur.)
--slow  (Slow down the automation. Faster than using Demo Mode.)
--reuse-session / --rs  (Reuse the browser session between tests.)
--crumbs  (Delete all cookies between tests reusing a session.)
--maximize  (Start tests with the web browser window maximized.)
--dashboard (Enable the SeleniumBase Dashboard at dashboard.html)
--incognito  (Enable Chrome's Incognito mode.)
--guest  (Enable Chrome's Guest mode.)
-m MARKER  (Run tests with the specified pytest marker.)
-n NUM  (Multithread the tests using that many threads.)
-v  (Verbose mode. Prints the full names of each test run.)
--html=report.html  (Create a detailed pytest-html report.)
--collect-only / --co  (Only show discovered tests. No run.)
--co -q  (Only show full names of discovered tests. No run.)
--trace  (Enter Debug Mode immediately after starting any test.
          n: Next line of method. s: Step through. c: Continue.)
--pdb  (Enter Debug Mode if a test fails. h: Help. c: Continue.
        where: Stacktrace location. u: Up stack. d: Down stack.
        longlist / ll: See code. dir(): List namespace objects.)
-x  (Stop running the tests after the first failure is reached.)
--archive-logs  (Archive old log files instead of deleting them.)
--save-screenshot  (Save a screenshot at the end of each test.)
--check-js  (Check for JavaScript errors after page loads.)
--start-page=URL  (The browser start page when tests begin.)
--agent=STRING  (Modify the web browser's User-Agent string.)
--mobile  (Use the mobile device emulator while running tests.)
--metrics=STRING  (Set mobile "CSSWidth,CSSHeight,PixelRatio".)
--ad-block  (Block some types of display ads after page loads.)
--settings-file=FILE  (Override default SeleniumBase settings.)
--env=ENV  (Set the test env. Access with "self.env" in tests.)
--data=DATA  (Extra test data. Access with "self.data" in tests.)
--disable-csp  (Disable the Content Security Policy of websites.)
--server=SERVER  (The Selenium Grid server/IP used for tests.)
--port=PORT  (The Selenium Grid port used by the test server.)
--proxy=SERVER:PORT  (Connect to a proxy server:port for tests.)
--proxy=USER:PASS@SERVER:PORT  (Use authenticated proxy server.)

For the full list of command-line options, type: "pytest --help".

Demo Mode updates and more

12 Jan 06:34
e489ac2
Compare
Choose a tag to compare

Demo Mode updates and more

  • Improve Demo Mode initialization
  • Update the css-to-xpath selector converter
  • Improve Demo Mode for selectors that use :contains()
  • Update a JS dependency (underscore v1.12.0)
  • Update Python dependencies:
    -- virtualenv>=20.3.0
    -- rich==9.8.0

Renovate the MySQL DB system

10 Jan 01:49
224e019
Compare
Choose a tag to compare

Renovate the MySQL DB system

  • Have the test status match that of the dashboard:
    -- Passed, Failed, Skipped, Untested.
  • Fix an issue where the MySQL DB was missing test info / exceptions.
  • Fix an issue where skipped tests didn't display Skipped status in the DB.

Also update Python dependencies:

  • parameterized==0.8.1
  • pymysql==1.0.2
  • rich==9.7.0

Improve drag-and-drop functionality

09 Jan 03:42
c31bd84
Compare
Choose a tag to compare

Improve drag-and-drop functionality

  • Add method: drag_and_drop_with_offset(selector, x, y)
  • Also update Python dependencies: setuptools>=51.1.2

Update Python dependencies

08 Jan 15:26
09ea75b
Compare
Choose a tag to compare

Update Python dependencies

  • prompt-toolkit==3.0.10;python_version>="3.6"
  • pymysql==1.0.1;python_version>="3.6"

Update console scripts

07 Jan 22:47
bf9743b
Compare
Choose a tag to compare

Update console scripts

  • Update console scripts for .gitignore file creation with sbase mkdir DIR
  • Also update Python dependencies: rich==9.6.2