Skip to content

Commit 46da62b

Browse files
authored
Merge pull request #692 from seleniumbase/fix-presentation-metadata
Update presentation metadata and more
2 parents a6d6791 + 18d2147 commit 46da62b

File tree

6 files changed

+28
-19
lines changed

6 files changed

+28
-19
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<img src="https://seleniumbase.io/img/sb_logo_10.png" alt="SeleniumBase" width="334" /></a><a href="https://github.com/seleniumbase/SeleniumBase/">
99
<img src="https://seleniumbase.io/cdn/img/sb_demo_site.png" alt="SeleniumBase" width="334" />
1010
</a></p>
11-
<p align="center"><b>Create reliable end-to-end tests faster.</b></p>
12-
<p align="center">Extends <a href="https://www.selenium.dev/projects/">Selenium/WebDriver</a> and <a href="https://docs.pytest.org/en/latest/index.html">pytest</a>.</p>
11+
<p align="center"><b>Build fast, reliable, end-to-end tests.</b></p>
12+
<p align="center">Extends <a href="https://www.w3.org/TR/webdriver/">Selenium/WebDriver</a> & <a href="https://docs.pytest.org/en/latest/index.html">pytest</a>.</p>
1313
<!-- View on GitHub -->
1414
<p align="center">
1515
<a href="https://github.com/seleniumbase/SeleniumBase/releases">
@@ -23,7 +23,7 @@
2323

2424
<p>
2525
<b>SeleniumBase</b> is an all-in-one framework for fast & simple browser automation, end-to-end testing, reports, presentations, charts, and website tours.
26-
Tests are run with <code>pytest</code>. Browsers are controlled by WebDriver.
26+
Tests are run with <code><b>pytest</b></code>. Browsers are controlled by WebDriver.
2727
</p>
2828

2929
<p align="center">
@@ -813,7 +813,6 @@ Additionally, you can use the ``@retry_on_exception()`` decorator to specificall
813813
<div><b>If you like us, give us a star!</b></div>
814814
<div><a href="https://github.com/seleniumbase/SeleniumBase/stargazers"><img src="https://img.shields.io/github/stars/seleniumbase/seleniumbase.svg?color=888CFA" title="Stargazers" /></a></div>
815815
</p>
816-
<div><iframe src="https://seleniumbase.io/help_docs/ReadMe/" title="Docs"></iframe></div>
817816
<p><div><a href="https://github.com/mdmintz">https://github.com/mdmintz</a></div></p>
818817

819818
<div><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="290" /></a></div>

examples/test_hack_search.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ def test_hack_search(self):
1313
self.assert_element('input[title="Search"]')
1414
self.set_attribute('[action="/search"]', "action", "//bing.com/search")
1515
self.set_attributes('[value="Google Search"]', "value", "Bing Search")
16-
self.type('input[title="Search"]', "SeleniumBase GitHub")
16+
self.type('input[title="Search"]', "SeleniumBase GitHub.com")
17+
self.highlight('[value="Bing Search"]')
1718
self.click('[value="Bing Search"]')
18-
self.assert_element("h1.b_logo")
19+
self.highlight("h1.b_logo")
1920
self.click('[href*="github.com/seleniumbase/SeleniumBase"]')
2021
self.assert_element('[href="/seleniumbase/SeleniumBase"]')
2122
self.assert_true("seleniumbase/SeleniumBase" in self.get_current_url())

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ brython==3.8.10
5959
pyotp==2.4.0
6060
boto==2.49.0
6161
cffi==1.14.2
62-
rich==6.1.1;python_version>="3.6" and python_version<"4.0"
62+
rich==6.1.2;python_version>="3.6" and python_version<"4.0"
6363
flake8==3.7.9;python_version<"3.5"
6464
flake8==3.8.3;python_version>="3.5"
6565
pyflakes==2.1.1;python_version<"3.5"

seleniumbase/config/proxy_list.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"""
2121

2222
PROXY_LIST = {
23-
"example1": "82.200.233.4:3128", # (Example) - set your own proxy here
23+
"example1": "46.28.229.75:3128", # (Example) - set your own proxy here
24+
"example2": "82.200.233.4:3128", # (Example) - set your own proxy here
25+
"example3": "128.199.214.87:3128", # (Example) - set your own proxy here
2426
"proxy1": None,
2527
"proxy2": None,
2628
"proxy3": None,

seleniumbase/fixtures/base_case.py

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,11 +2918,20 @@ def assert_raises(self, *args, **kwargs):
29182918

29192919
def assert_title(self, title):
29202920
""" Asserts that the web page title matches the expected title. """
2921+
self.wait_for_ready_state_complete()
29212922
expected = title
29222923
actual = self.get_page_title()
2923-
self.assertEqual(expected, actual, "Expected page title [%s] "
2924-
"does not match the actual page title [%s]!"
2925-
"" % (expected, actual))
2924+
try:
2925+
self.assertEqual(expected, actual, "Expected page title [%s] "
2926+
"does not match the actual page title [%s]!"
2927+
"" % (expected, actual))
2928+
except Exception:
2929+
self.wait_for_ready_state_complete()
2930+
self.sleep(settings.MINI_TIMEOUT)
2931+
actual = self.get_page_title()
2932+
self.assertEqual(expected, actual, "Expected page title [%s] "
2933+
"does not match the actual page title [%s]!"
2934+
"" % (expected, actual))
29262935
if self.demo_mode:
29272936
a_t = "ASSERT TITLE"
29282937
if self._language != "English":
@@ -3505,9 +3514,8 @@ def create_presentation(
35053514
'<head>\n'
35063515
'<meta charset="utf-8">\n'
35073516
'<meta http-equiv="Content-Type" '
3508-
'content="text/html; charset=utf-8">\n'
3509-
'<meta name="viewport" '
3510-
'content="width=device-width, initial-scale=1">\n'
3517+
'content="text/html; charset=utf-8;">\n'
3518+
'<meta name="viewport" content="text/html;">\n'
35113519
'<link rel="stylesheet" href="%s">\n'
35123520
'<link rel="stylesheet" href="%s">\n'
35133521
'<style>\n'
@@ -4139,9 +4147,8 @@ def save_chart(self, chart_name=None, filename=None):
41394147
raise Exception('Chart file must end in ".html"!')
41404148
the_html = '<meta charset="utf-8">\n'
41414149
the_html += '<meta http-equiv="Content-Type" '
4142-
the_html += 'content="text/html; charset=utf-8">\n'
4143-
the_html += '<meta name="viewport" '
4144-
the_html += 'content="width=device-width, initial-scale=1">\n'
4150+
the_html += 'content="text/html; charset=utf-8;">\n'
4151+
the_html += '<meta name="viewport" content="text/html;">\n'
41454152
for chart_data_point in self._chart_data[chart_name]:
41464153
the_html += chart_data_point
41474154
the_html += (

setup.py

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

5555
setup(
5656
name='seleniumbase',
57-
version='1.49.10',
57+
version='1.49.11',
5858
description='Web Automation and Test Framework - https://seleniumbase.io',
5959
long_description=long_description,
6060
long_description_content_type='text/markdown',
@@ -151,7 +151,7 @@
151151
'pyotp==2.4.0',
152152
'boto==2.49.0',
153153
'cffi==1.14.2',
154-
'rich==6.1.1;python_version>="3.6" and python_version<"4.0"',
154+
'rich==6.1.2;python_version>="3.6" and python_version<"4.0"',
155155
'flake8==3.7.9;python_version<"3.5"',
156156
'flake8==3.8.3;python_version>="3.5"',
157157
'pyflakes==2.1.1;python_version<"3.5"',

0 commit comments

Comments
 (0)