Skip to content

Commit 292786c

Browse files
authored
Merge pull request #698 from seleniumbase/i18n-updates
Update i18n translations. Also update a Python requirement.
2 parents c9dacd2 + fbc8edc commit 292786c

File tree

16 files changed

+82
-27
lines changed

16 files changed

+82
-27
lines changed

examples/presenter/core_presentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class MyChartMakerClass(BaseCase):
55

66
def test_seleniumbase_chart(self):
7-
self.create_presentation(theme="league")
7+
self.create_presentation(theme="league", transition="slide")
88
self.create_pie_chart(title="There are 4 core areas of SeleniumBase:")
99
self.add_data_point("Basic API (Test methods/functions)", 1)
1010
self.add_data_point("Command-line Options (pytest Options)", 1)

help_docs/install_python_pip_git.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can [download Git from here](http://git-scm.com/downloads).
88

99
(You can also download SeleniumBase from GitHub without using git-related commands.)
1010

11-
### [Python 2.7 or 3.x](https://www.python.org)
11+
### [Python](https://www.python.org)
1212

1313
You can download Python from [https://www.python.org/downloads/](https://www.python.org/downloads/) if it's not already preinstalled on your machine.
1414

@@ -41,7 +41,7 @@ yum -y install python-pip
4141

4242
If you're having any trouble getting pip, you can [GET PIP HERE](https://pip.pypa.io/en/latest/installing/).
4343

44-
When done, make sure the location of pip is on your path, which is `$PATH` for macOS/Linux. (On Windows, it's the System Variables `Path` within System Environment Variables. Ex: Add "C:/Python27/Scripts/" to the end of the `Path` variable.)
44+
When done, make sure the location of pip is on your path, which is ``$PATH`` for macOS/Linux. (On Windows, it's the System Variables ``Path`` within System Environment Variables.)
4545

4646
You can also get pip (or fix pip) by using:
4747
```bash

mkdocs.yml

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Project information
2-
site_name: SeleniumBase | Docs
2+
site_name: SeleniumBase
33
site_url: https://seleniumbase.io
44
site_author: Michael Mintz
5-
site_description: Web Automation / E2E Test Framework
5+
site_description: Fast, reliable, end-to-end testing
66
# Repository information
77
repo_name: seleniumbase/SeleniumBase
88
repo_url: https://github.com/seleniumbase/SeleniumBase
99
edit_uri: ""
1010
site_dir: "site"
1111
docs_dir: "docs"
1212
# Copyright
13-
copyright: Copyright © 2015 - 2020 Michael Mintz / SeleniumBase
13+
copyright: Copyright © 2014 - 2020 Michael Mintz / SeleniumBase
1414
# Extensions
1515
markdown_extensions:
1616
- markdown.extensions.admonition
@@ -53,52 +53,59 @@ plugins:
5353
on_pre_build: docs.prepare:main
5454
# Page tree
5555
nav:
56-
- SeleniumBase README: README.md
56+
- SeleniumBase | Docs: README.md
5757
- Features: help_docs/features_list.md
58-
- CMD Options: help_docs/customizing_test_runs.md
59-
- Python Setup:
58+
- Setup / Installation:
6059
- Install Python, pip, git: help_docs/install_python_pip_git.md
6160
- Virtualenv Instructions: help_docs/virtualenv_instructions.md
62-
- Installation:
6361
- Install SeleniumBase: help_docs/install.md
6462
- WebDriver Installation: help_docs/webdriver_installation.md
6563
- Verifying WebDriver: help_docs/verify_webdriver.md
6664
- How it Works: help_docs/how_it_works.md
65+
- Options / API:
66+
- CMD Options: help_docs/customizing_test_runs.md
67+
- API Reference: help_docs/method_summary.md
68+
- Mobile Testing: help_docs/mobile_testing.md
6769
- Examples: examples/ReadMe.md
68-
- API Reference: help_docs/method_summary.md
70+
- Logging & Reports: examples/example_logs/ReadMe.md
71+
- Console Scripts: seleniumbase/console_scripts/ReadMe.md
6972
- Languages / 语言:
7073
- Translations: help_docs/translations.md
7174
- Chinese / 中文文件: help_docs/chinese.md
7275
- Locale Codes: help_docs/locale_codes.md
73-
- Mobile Testing: help_docs/mobile_testing.md
74-
- Console Scripts: seleniumbase/console_scripts/ReadMe.md
75-
- JS Package Manager: help_docs/js_package_manager.md
76-
- Site Tours: examples/tour_examples/ReadMe.md
77-
- Presentation Maker: examples/presenter/ReadMe.md
78-
- Chart Maker: help_docs/chart_maker.md
79-
- Visual Testing: examples/visual_testing/ReadMe.md
76+
- JavaScript Generators:
77+
- Tour Maker: examples/tour_examples/ReadMe.md
78+
- Presentation Maker: examples/presenter/ReadMe.md
79+
- Chart Maker: help_docs/chart_maker.md
8080
- Integrations:
81-
- Logging and Reports: examples/example_logs/ReadMe.md
8281
- GitHub CI: integrations/github/workflows/ReadMe.md
8382
- Selenium Grid: seleniumbase/utilities/selenium_grid/ReadMe.md
8483
- Katalon Recorder: integrations/katalon/ReadMe.md
8584
- MasterQA: examples/master_qa/ReadMe.md
86-
- MySQL Help: help_docs/mysql_installation.md
85+
- Visual Testing: examples/visual_testing/ReadMe.md
8786
- Jenkins on Azure: integrations/azure/jenkins/ReadMe.md
8887
- Jenkins on Google Cloud: integrations/google_cloud/ReadMe.md
8988
- Recorder and Exporting: seleniumbase/utilities/selenium_ide/ReadMe.md
9089
- NodeJS Test Runner: https://github.com/seleniumbase/SeleniumBase/tree/master/integrations/node_js
9190
- HighCharts: examples/chart_maker/ReadMe.md
92-
- Docker Help: integrations/docker/ReadMe.md
9391
- Help Docs ToC:
9492
- Table of Contents: help_docs/ReadMe.md
9593
- Master QA: seleniumbase/masterqa/ReadMe.md
94+
- JS Package Manager: help_docs/js_package_manager.md
9695
- Decorators & Security: seleniumbase/common/ReadMe.md
9796
- Desired Capabilities: help_docs/desired_capabilities.md
9897
- Using Safari Driver: help_docs/using_safari_driver.md
9998
- macOS Hidden Files: help_docs/hidden_files_info.md
99+
- Docker Help: integrations/docker/ReadMe.md
100+
- MySQL Help: help_docs/mysql_installation.md
100101
- Case Studies: help_docs/happy_customers.md
101-
- Demo Page for Tests: https://seleniumbase.io/demo_page
102-
- Thank You: help_docs/thank_you.md
102+
- Thank You: help_docs/thank_you.md
103+
- Demo pages for tests:
104+
- Demo Page / Demo Site: https://seleniumbase.io/demo_page
105+
- TinyMCE Demo Page: https://seleniumbase.io/other/tinymce
106+
- Error Demo Page: https://seleniumbase.io/error_page/
107+
- Presenter Demo: https://seleniumbase.io/other/presenter.html
108+
- Core Presentation: https://seleniumbase.io/other/core_presentation.html
109+
- Chart Maker Demo: https://seleniumbase.io/other/chart_presentation.html
103110
# Google Analytics
104111
google_analytics: ['UA-167313767-1', 'seleniumbase.io']

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cryptography==3.0;python_version<"3.6"
4343
cryptography==3.1;python_version>="3.6"
4444
pyopenssl==19.1.0
4545
pygments==2.5.2;python_version<"3.5"
46-
pygments==2.7.0;python_version>="3.5"
46+
pygments==2.7.1;python_version>="3.5"
4747
traitlets==4.3.3;python_version<"3.7"
4848
traitlets==5.0.4;python_version>="3.7"
4949
prompt-toolkit==1.0.18;python_version<"3.6"

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3526,7 +3526,7 @@ def create_presentation(
35263526
'</style>\n'
35273527
'</head>\n\n'
35283528
'<body>\n'
3529-
'<!-- Generated by SeleniumBase - https://seleniumbase.io -->'
3529+
'<!-- Generated by SeleniumBase - https://seleniumbase.io -->\n'
35303530
'<div class="reveal">\n'
35313531
'<div class="slides">\n'
35323532
'' % (constants.Reveal.MIN_CSS, reveal_theme_css))

seleniumbase/translate/chinese.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ def 断言PDF文本(self, *args, **kwargs):
428428
# codec='utf-8', wrap=True, nav=False, override=False)
429429
return self.assert_pdf_text(*args, **kwargs)
430430

431+
def 检查下载的文件(self, *args, **kwargs):
432+
# assert_downloaded_file(file)
433+
return self.assert_downloaded_file(*args, **kwargs)
434+
431435
def 失败(self, *args, **kwargs):
432436
# fail(msg=None) # Inherited from "unittest"
433437
return self.fail(*args, **kwargs)

seleniumbase/translate/dutch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ def controleren_pdf_tekst(self, *args, **kwargs):
428428
# codec='utf-8', wrap=True, nav=False, override=False)
429429
return self.assert_pdf_text(*args, **kwargs)
430430

431+
def controleren_gedownloade_bestand(self, *args, **kwargs):
432+
# assert_downloaded_file(file)
433+
return self.assert_downloaded_file(*args, **kwargs)
434+
431435
def mislukken(self, *args, **kwargs):
432436
# fail(msg=None) # Inherited from "unittest"
433437
return self.fail(*args, **kwargs)

seleniumbase/translate/french.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ def vérifier_texte_pdf(self, *args, **kwargs):
428428
# codec='utf-8', wrap=True, nav=False, override=False)
429429
return self.assert_pdf_text(*args, **kwargs)
430430

431+
def vérifier_fichier_téléchargé(self, *args, **kwargs):
432+
# assert_downloaded_file(file)
433+
return self.assert_downloaded_file(*args, **kwargs)
434+
431435
def échouer(self, *args, **kwargs):
432436
# fail(msg=None) # Inherited from "unittest"
433437
return self.fail(*args, **kwargs)

seleniumbase/translate/italian.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ def verificare_testo_pdf(self, *args, **kwargs):
428428
# codec='utf-8', wrap=True, nav=False, override=False)
429429
return self.assert_pdf_text(*args, **kwargs)
430430

431+
def verificare_file_scaricato(self, *args, **kwargs):
432+
# assert_downloaded_file(file)
433+
return self.assert_downloaded_file(*args, **kwargs)
434+
431435
def fallire(self, *args, **kwargs):
432436
# fail(msg=None) # Inherited from "unittest"
433437
return self.fail(*args, **kwargs)

seleniumbase/translate/japanese.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ def PDFテキストを確認する(self, *args, **kwargs):
428428
# codec='utf-8', wrap=True, nav=False, override=False)
429429
return self.assert_pdf_text(*args, **kwargs)
430430

431+
def ダウンロードしたファイルを確認する(self, *args, **kwargs):
432+
# assert_downloaded_file(file)
433+
return self.assert_downloaded_file(*args, **kwargs)
434+
431435
def 失敗(self, *args, **kwargs):
432436
# fail(msg=None) # Inherited from "unittest"
433437
return self.fail(*args, **kwargs)

0 commit comments

Comments
 (0)