Updates for ChartMaker, Traffic-generator, refactoring, and more #840
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates for ChartMaker, Traffic-generator, refactoring, and more
-- Add parameters for enabling/disabling labels & legends on charts.
-- Improve some layout and design details for chart generation.
-- Add parameters to traffic-gen code for lowering the bounce-rate.
---- (Lets you perform a click action as part of traffic-gen methods.)
-- (This was probably already the default option if not changed.)
-- 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]
)--
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.
If a
selector
is provided in theself.generate_referral
andself.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).