Skip to content

Commit c3ec848

Browse files
authored
Merge pull request #656 from seleniumbase/update-dependencies-and-examples
Update Python dependencies, examples, and more
2 parents a558b0b + 331552a commit c3ec848

File tree

7 files changed

+90
-10
lines changed

7 files changed

+90
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<meta property="og:site_name" content="SeleniumBase | Docs">
22
<meta property="og:title" content="SeleniumBase | Easy Test Automation" />
33
<meta property="og:description" content="Browser automation and testing with Python." />
4-
<meta property="og:image" content="https://seleniumbase.io/img/sb_logo_10.png" />
4+
<meta property="og:image" content="https://seleniumbase.io/cdn/img/sb_logo_dh.png" />
55
<link rel="icon" href="https://seleniumbase.io/img/logo3a.png" />
66

77
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/">
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
from seleniumbase import BaseCase
2+
3+
4+
class MyChartMakerClass(BaseCase):
5+
6+
def test_seleniumbase_chart(self):
7+
self.create_presentation(theme="league")
8+
self.create_pie_chart(title="There are 4 core areas of SeleniumBase:")
9+
self.add_data_point("Basic API (Test methods/functions)", 1)
10+
self.add_data_point("Command-line Options (pytest Options)", 1)
11+
self.add_data_point("The Console Scripts interface", 1)
12+
self.add_data_point("Advanced API (Tours, Charts, & Presentations)", 1)
13+
self.add_slide("<p>SeleniumBase core areas</p>" + self.extract_chart())
14+
self.add_slide(
15+
"<p>Basic API (Test methods/functions) Example</p>",
16+
code=(
17+
'from seleniumbase import BaseCase\n\n'
18+
'class MyTestClass(BaseCase):\n\n'
19+
' def test_basic(self):\n'
20+
' self.open("https://store.xkcd.com/search")\n'
21+
' self.type(\'input[name="q"]\', "xkcd book\\n")\n'
22+
' self.assert_text("xkcd book", "div.results")\n'
23+
' self.open("https://xkcd.com/353/")\n'
24+
' self.click(\'a[rel="license"]\')\n'
25+
' self.go_back()\n'
26+
' self.click_link_text("About")\n'
27+
' self.click_link_text("comic #249")\n'
28+
' self.assert_element(\'img[alt*="Chess"]\')\n'))
29+
self.add_slide(
30+
"<p>Command-line Options Example</p>",
31+
code=(
32+
'$ pytest my_first_test.py\n'
33+
'$ pytest test_swag_labs.py --mobile\n'
34+
'$ pytest edge_test.py --browser=edge\n'
35+
'$ pytest basic_test.py --headless\n'
36+
'$ pytest my_first_test.py --demo\n'
37+
'$ pytest basic_test.py --slow\n'
38+
'$ pytest -v -m marker2 --headless --save-screenshot\n'
39+
'$ pytest test_suite.py --reuse-session --html=report.html\n'
40+
'$ pytest basic_test.py --incognito\n'
41+
'$ pytest parameterized_test.py --guest --reuse-session\n'))
42+
self.add_slide(
43+
"<p>Console scripts interface Example</p>",
44+
code=(
45+
'$ sbase install chromedriver\n'
46+
'$ sbase install chromedriver latest\n'
47+
'$ sbase mkdir new_test_folder\n'
48+
'$ sbase mkfile new_test.py\n'
49+
'$ sbase print basic_test.py -n\n'
50+
'$ sbase translate basic_test.py -p --chinese -n\n'
51+
'$ sbase translate basic_test.py -p --japanese\n'
52+
'$ sbase translate basic_test.py -c --russian\n'
53+
'$ sbase download server\n'
54+
'$ sbase grid-hub start\n'
55+
'$ sbase grid-node start --hub="127.0.0.1"\n'
56+
'$ sbase grid-node stop\n'
57+
'$ sbase grid-hub stop\n'
58+
'$ sbase options\n'))
59+
self.add_slide(
60+
'<p>Advanced API (creating a presentation) Example</p>',
61+
code=(
62+
'from seleniumbase import BaseCase\n\n'
63+
'class MyPresenterClass(BaseCase):\n\n'
64+
' def test_presenter(self):\n'
65+
' self.create_presentation(theme="serif")\n'
66+
' self.add_slide("Welcome to Presenter!")\n'
67+
' self.add_slide(\n'
68+
' "Add code to slides:",\n'
69+
' code=(\n'
70+
' "from seleniumbase import BaseCase\\n\\n"\n'
71+
' "class MyPresenterClass(BaseCase):\\n\\n"\n'
72+
' " def test_presenter(self):\\n"\n'
73+
' " self.create_presentation()\\n"))\n'
74+
' self.begin_presentation(\n'
75+
' filename="demo.html", show_notes=True)'))
76+
self.add_slide(
77+
'<p><b>The End</b></p>',
78+
image="https://seleniumbase.io/cdn/img/sb_logo_g.png")
79+
self.begin_presentation(filename="core_presentation.html")

examples/test_apple_site.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
from seleniumbase import BaseCase
23

34

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ markdown_extensions:
2424
# Configuration
2525
theme:
2626
name: material
27-
logo: img/logo3a.png
27+
logo: https://seleniumbase.io/cdn/img/sb_logo_dh.png
2828
favicon: img/logo3a.png
2929
include_homepage_in_sidebar: true
3030
sticky_navigation: true

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ coverage==5.2.1
5151
brython>=3.8.9
5252
pyotp==2.4.0
5353
boto==2.49.0
54-
cffi==1.14.1
55-
rich==5.1.2;python_version>="3.6" and python_version<"4.0"
54+
cffi==1.14.2
55+
rich==5.2.0;python_version>="3.6" and python_version<"4.0"
5656
flake8==3.7.9;python_version<"3.5"
5757
flake8==3.8.3;python_version>="3.5"
5858
pyflakes==2.1.1;python_version<"3.5"

seleniumbase/console_scripts/sb_install.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
seleniumbase install chromedriver
1414
seleniumbase install geckodriver
1515
seleniumbase install edgedriver
16-
seleniumbase install chromedriver 83.0.4103.39
16+
seleniumbase install chromedriver 84.0.4147.30
1717
seleniumbase install chromedriver latest
1818
seleniumbase install chromedriver -p
1919
seleniumbase install chromedriver latest -p
20-
seleniumbase install edgedriver 79.0.309.65
20+
seleniumbase install edgedriver 84.0.522.59
2121
Output:
2222
Installs the chosen webdriver to seleniumbase/drivers/
2323
(chromedriver is required for Chrome automation)
@@ -41,7 +41,7 @@
4141
LOCAL_PATH = "/usr/local/bin/" # On Mac and Linux systems
4242
DEFAULT_CHROMEDRIVER_VERSION = "2.44"
4343
DEFAULT_GECKODRIVER_VERSION = "v0.26.0"
44-
DEFAULT_EDGEDRIVER_VERSION = "84.0.522.52"
44+
DEFAULT_EDGEDRIVER_VERSION = "84.0.522.59"
4545
DEFAULT_OPERADRIVER_VERSION = "v.81.0.4044.113"
4646

4747

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name='seleniumbase',
57-
version='1.46.6',
57+
version='1.46.7',
5858
description='Web Automation and Test Framework - https://seleniumbase.io',
5959
long_description=long_description,
6060
long_description_content_type='text/markdown',
@@ -143,8 +143,8 @@
143143
'brython>=3.8.9',
144144
'pyotp==2.4.0',
145145
'boto==2.49.0',
146-
'cffi==1.14.1',
147-
'rich==5.1.2;python_version>="3.6" and python_version<"4.0"',
146+
'cffi==1.14.2',
147+
'rich==5.2.0;python_version>="3.6" and python_version<"4.0"',
148148
'flake8==3.7.9;python_version<"3.5"',
149149
'flake8==3.8.3;python_version>="3.5"',
150150
'pyflakes==2.1.1;python_version<"3.5"',

0 commit comments

Comments
 (0)