From 9a65e4a801db4e29bfe0c4d47de02b7572e552b4 Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Thu, 25 Feb 2021 15:07:29 -0500 Subject: [PATCH 1/5] Update Portuguese translations --- seleniumbase/translate/master_dict.py | 6 +++--- seleniumbase/translate/portuguese.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/seleniumbase/translate/master_dict.py b/seleniumbase/translate/master_dict.py index cb61dafd160..b71921ff024 100755 --- a/seleniumbase/translate/master_dict.py +++ b/seleniumbase/translate/master_dict.py @@ -775,7 +775,7 @@ class MD: md["js_type"][4] = "js_digitare" md["js_type"][5] = "JS入力" md["js_type"][6] = "JS_입력" - md["js_type"][7] = "js_tipo" + md["js_type"][7] = "js_digitar" md["js_type"][8] = "JS_введите" md["js_type"][9] = "js_escriba" @@ -1628,7 +1628,7 @@ class MD: md["type"][4] = "digitare" md["type"][5] = "入力" md["type"][6] = "입력" - md["type"][7] = "tipo" + md["type"][7] = "digitar" md["type"][8] = "введите" md["type"][9] = "escriba" @@ -1836,7 +1836,7 @@ class MD: md["input"][4] = "digitare" md["input"][5] = "入力" md["input"][6] = "입력" - md["input"][7] = "tipo" + md["input"][7] = "digitar" md["input"][8] = "введите" md["input"][9] = "escriba" diff --git a/seleniumbase/translate/portuguese.py b/seleniumbase/translate/portuguese.py index d0130e3344a..cb492bf8c6e 100755 --- a/seleniumbase/translate/portuguese.py +++ b/seleniumbase/translate/portuguese.py @@ -41,7 +41,7 @@ def atualizar_texto(self, *args, **kwargs): # update_text(selector, text) return self.update_text(*args, **kwargs) - def tipo(self, *args, **kwargs): + def digitar(self, *args, **kwargs): # type(selector, text) # Same as update_text() return self.type(*args, **kwargs) @@ -189,7 +189,7 @@ def js_atualizar_texto(self, *args, **kwargs): # js_update_text(selector, text) return self.js_update_text(*args, **kwargs) - def js_tipo(self, *args, **kwargs): + def js_digitar(self, *args, **kwargs): # js_type(selector, text) return self.js_type(*args, **kwargs) From 655086e0968946859318a04dbc3436cd68376435 Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Thu, 25 Feb 2021 15:08:04 -0500 Subject: [PATCH 2/5] Update examples --- examples/swag_labs_suite.py | 2 +- examples/test_download_files.py | 5 +++-- examples/translations/portuguese_test_1.py | 6 +++--- help_docs/syntax_formats.md | 6 +++--- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/examples/swag_labs_suite.py b/examples/swag_labs_suite.py index 14b09771f58..87e5c3270be 100755 --- a/examples/swag_labs_suite.py +++ b/examples/swag_labs_suite.py @@ -84,7 +84,7 @@ def test_swag_labs_basic_functional_flow(self, username): ["problem_user"], ]) @pytest.mark.run(order=2) - def test_swag_labs_products_page_resource_verification(self, username): + def test_swag_labs_products_page_links(self, username): """ This test checks for 404 errors on the Swag Labs products page. This test is parameterized, and receives the user for login. """ self.login_to_swag_labs(username=username) diff --git a/examples/test_download_files.py b/examples/test_download_files.py index 4258f941e08..a13add82691 100644 --- a/examples/test_download_files.py +++ b/examples/test_download_files.py @@ -11,8 +11,9 @@ def test_download_files(self): whl_file = pkg_name + "-py2.py3-none-any.whl" tar_gz_file = pkg_name + ".tar.gz" - # Click the links to download the files - # (If using Safari, IE, or Chromium Guest Mode, download directly.) + # Click the links to download the files into: "./downloaded_files/" + # (If using Safari, IE, or Chromium Guest Mode: download directly.) + # (The default Downloads Folder can't be changed when using those.) whl_selector = 'div#files a[href$="%s"]' % whl_file tar_selector = 'div#files a[href$="%s"]' % tar_gz_file if self.browser == "safari" or self.browser == "ie" or ( diff --git a/examples/translations/portuguese_test_1.py b/examples/translations/portuguese_test_1.py index b5a69d99d1b..8c7fed13af8 100755 --- a/examples/translations/portuguese_test_1.py +++ b/examples/translations/portuguese_test_1.py @@ -8,17 +8,17 @@ def test_exemplo_1(self): self.abrir("https://pt.wikipedia.org/wiki/") self.verificar_texto("Wikipédia") self.verificar_elemento('[title="Língua portuguesa"]') - self.tipo("#searchInput", "João Pessoa") + self.digitar("#searchInput", "João Pessoa") self.clique("#searchButton") self.verificar_texto("João Pessoa", "#firstHeading") self.verificar_elemento('img[alt*="João Pessoa"]') - self.tipo("#searchInput", "Florianópolis") + self.digitar("#searchInput", "Florianópolis") self.clique("#searchButton") self.verificar_texto("Florianópolis", "h1#firstHeading") self.verificar_elemento('img[alt*="Avenida Beira Mar"]') self.voltar() self.verificar_verdade("João" in self.obter_url_atual()) - self.tipo("#searchInput", "Teatro Amazonas") + self.digitar("#searchInput", "Teatro Amazonas") self.clique("#searchButton") self.verificar_texto("Teatro Amazonas", "#firstHeading") self.verificar_texto_do_link("Festival Amazonas de Ópera") diff --git a/help_docs/syntax_formats.md b/help_docs/syntax_formats.md index 59887c23f99..545590ea943 100755 --- a/help_docs/syntax_formats.md +++ b/help_docs/syntax_formats.md @@ -324,17 +324,17 @@ class MinhaClasseDeTeste(CasoDeTeste): self.abrir("https://pt.wikipedia.org/wiki/") self.verificar_texto("Wikipédia") self.verificar_elemento('[title="Língua portuguesa"]') - self.tipo("#searchInput", "João Pessoa") + self.digitar("#searchInput", "João Pessoa") self.clique("#searchButton") self.verificar_texto("João Pessoa", "#firstHeading") self.verificar_elemento('img[alt*="João Pessoa"]') - self.tipo("#searchInput", "Florianópolis") + self.digitar("#searchInput", "Florianópolis") self.clique("#searchButton") self.verificar_texto("Florianópolis", "h1#firstHeading") self.verificar_elemento('img[alt*="Avenida Beira Mar"]') self.voltar() self.verificar_verdade("João" in self.obter_url_atual()) - self.tipo("#searchInput", "Teatro Amazonas") + self.digitar("#searchInput", "Teatro Amazonas") self.clique("#searchButton") self.verificar_texto("Teatro Amazonas", "#firstHeading") self.verificar_texto_do_link("Festival Amazonas de Ópera") From f0ff3e94880b1be6d88963c99b9dcf644d0d6c3b Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Thu, 25 Feb 2021 15:08:40 -0500 Subject: [PATCH 3/5] Update docs dependencies --- docs/requirements.txt | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 6780ce322c4..4ed9b067d57 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ regex>=2020.11.13 -tqdm>=4.57.0 +tqdm>=4.58.0 livereload==2.6.3;python_version>="3.6" joblib==1.0.1;python_version>="3.6" Markdown==3.3.4 @@ -8,7 +8,7 @@ readme-renderer==29.0 pymdown-extensions==8.1.1 lunr==0.5.8 mkdocs==1.1.2 -mkdocs-material==7.0.1 +mkdocs-material==7.0.2 mkdocs-simple-hooks==0.1.2 mkdocs-material-extensions==1.0.1 mkdocs-minify-plugin==0.4.0 diff --git a/setup.py b/setup.py index 7eb514a8014..7cca7192f34 100755 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ print("\n*** Installing twine: *** (Required for PyPI uploads)\n") os.system("python -m pip install --upgrade 'twine>=1.15.0'") print("\n*** Installing tqdm: *** (Required for PyPI uploads)\n") - os.system("python -m pip install --upgrade 'tqdm>=4.57.0'") + os.system("python -m pip install --upgrade 'tqdm>=4.58.0'") print("\n*** Publishing The Release to PyPI: ***\n") os.system('python -m twine upload dist/*') # Requires ~/.pypirc Keys print("\n*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n") From 2e939ba9e4625c6bb7e3915dcebca121b4b7506e Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Thu, 25 Feb 2021 15:09:02 -0500 Subject: [PATCH 4/5] Update Python dependencies --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 209d86a33ba..6f7028aa478 100755 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ pip>=21.0.1;python_version>="3.6" packaging>=20.9 setuptools>=44.1.1;python_version<"3.5" setuptools>=50.3.2;python_version>="3.5" and python_version<"3.6" -setuptools>=53.0.0;python_version>="3.6" +setuptools>=53.1.0;python_version>="3.6" setuptools-scm>=5.0.1 wheel>=0.36.2 attrs>=20.3.0 diff --git a/setup.py b/setup.py index 7cca7192f34..bc3261d35d6 100755 --- a/setup.py +++ b/setup.py @@ -107,7 +107,7 @@ 'packaging>=20.9', 'setuptools>=44.1.1;python_version<"3.5"', 'setuptools>=50.3.2;python_version>="3.5" and python_version<"3.6"', - 'setuptools>=53.0.0;python_version>="3.6"', + 'setuptools>=53.1.0;python_version>="3.6"', 'setuptools-scm>=5.0.1', 'wheel>=0.36.2', 'attrs>=20.3.0', From 5a8fe8a3370aa4d7d44c7e84c778ddbcb9d5d9ab Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Thu, 25 Feb 2021 15:14:59 -0500 Subject: [PATCH 5/5] Version 1.56.1 --- seleniumbase/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seleniumbase/__version__.py b/seleniumbase/__version__.py index 7a5094aac40..b31345400f9 100755 --- a/seleniumbase/__version__.py +++ b/seleniumbase/__version__.py @@ -1,2 +1,2 @@ # seleniumbase package -__version__ = "1.56.0" +__version__ = "1.56.1"