github seleniumbase/SeleniumBase v1.58.0
Updates for ChartMaker, Traffic-generator, refactoring, and more

latest releases: v4.26.3, v4.26.2, v4.26.1...
3 years ago

Updates for ChartMaker, Traffic-generator, refactoring, and more

  • Updates for ChartMaker:
    -- Add parameters for enabling/disabling labels & legends on charts.
    -- Improve some layout and design details for chart generation.
  • Updates for Traffic-generator methods:
    -- Add parameters to traffic-gen code for lowering the bounce-rate.
    ---- (Lets you perform a click action as part of traffic-gen methods.)
  • Make sure that generated presentations include a progress bar.
    -- (This was probably already the default option if not changed.)
  • Refactoring:
    -- Move coverage and flake dependencies into own setup.py area.
    ---- (Install coverage tools with: pip install -e .[coverage])
    ---- (Install flake tools with: pip install -e .[flake])
  • Update required and optional Python dependencies:
    -- setuptools>=54.1.2;python_version>="3.6"
    -- prompt-toolkit==3.0.17;python_version>="3.6"
    -- flake8==3.9.0;python_version>="3.5"
    -- pyflakes==2.3.0;python_version>="3.5"
    -- pycodestyle==2.7.0;python_version>="3.5"

SeleniumBase ChartMaker lets you use Python to generate HTML charts from HighCharts JS.


Here's an example: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/chart_maker/chart_presentation.py


SeleniumBase Traffic-generator methods let you generate traffic to a website for testing analytics software that monitors referral sources.

This works by using JavaScript to create a button on a website, which is then clicked in order to take you to a destination page. Website analytics software is easily fooled and believes this traffic to be a genuine referral from the origin website.

self.generate_referral(start_page, destination_page, selector=None)

self.generate_traffic(start_page, destination_page, loops=1, selector=None)

self.generate_referral_chain(pages)

self.generate_traffic_chain(pages, loops=1)

If a selector is provided in the self.generate_referral and self.generate_traffic methods, then the automation will click that button after reaching the destination site. This can prevent an artificial rise in website bounce-rate because the new user performs an action (and therefore doesn't count as a bounce anymore because the user visits a different page of that destination website).

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.