Skip to content

Commit a86b8cc

Browse files
authored
Merge pull request #827 from seleniumbase/update-translations-and-examples
Update translations, examples, and dependencies
2 parents 47b0352 + 5a8fe8a commit a86b8cc

File tree

10 files changed

+21
-20
lines changed

10 files changed

+21
-20
lines changed

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
regex>=2020.11.13
2-
tqdm>=4.57.0
2+
tqdm>=4.58.0
33
livereload==2.6.3;python_version>="3.6"
44
joblib==1.0.1;python_version>="3.6"
55
Markdown==3.3.4
@@ -8,7 +8,7 @@ readme-renderer==29.0
88
pymdown-extensions==8.1.1
99
lunr==0.5.8
1010
mkdocs==1.1.2
11-
mkdocs-material==7.0.1
11+
mkdocs-material==7.0.2
1212
mkdocs-simple-hooks==0.1.2
1313
mkdocs-material-extensions==1.0.1
1414
mkdocs-minify-plugin==0.4.0

examples/swag_labs_suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_swag_labs_basic_functional_flow(self, username):
8484
["problem_user"],
8585
])
8686
@pytest.mark.run(order=2)
87-
def test_swag_labs_products_page_resource_verification(self, username):
87+
def test_swag_labs_products_page_links(self, username):
8888
""" This test checks for 404 errors on the Swag Labs products page.
8989
This test is parameterized, and receives the user for login. """
9090
self.login_to_swag_labs(username=username)

examples/test_download_files.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ def test_download_files(self):
1111
whl_file = pkg_name + "-py2.py3-none-any.whl"
1212
tar_gz_file = pkg_name + ".tar.gz"
1313

14-
# Click the links to download the files
15-
# (If using Safari, IE, or Chromium Guest Mode, download directly.)
14+
# Click the links to download the files into: "./downloaded_files/"
15+
# (If using Safari, IE, or Chromium Guest Mode: download directly.)
16+
# (The default Downloads Folder can't be changed when using those.)
1617
whl_selector = 'div#files a[href$="%s"]' % whl_file
1718
tar_selector = 'div#files a[href$="%s"]' % tar_gz_file
1819
if self.browser == "safari" or self.browser == "ie" or (

examples/translations/portuguese_test_1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ def test_exemplo_1(self):
88
self.abrir("https://pt.wikipedia.org/wiki/")
99
self.verificar_texto("Wikipédia")
1010
self.verificar_elemento('[title="Língua portuguesa"]')
11-
self.tipo("#searchInput", "João Pessoa")
11+
self.digitar("#searchInput", "João Pessoa")
1212
self.clique("#searchButton")
1313
self.verificar_texto("João Pessoa", "#firstHeading")
1414
self.verificar_elemento('img[alt*="João Pessoa"]')
15-
self.tipo("#searchInput", "Florianópolis")
15+
self.digitar("#searchInput", "Florianópolis")
1616
self.clique("#searchButton")
1717
self.verificar_texto("Florianópolis", "h1#firstHeading")
1818
self.verificar_elemento('img[alt*="Avenida Beira Mar"]')
1919
self.voltar()
2020
self.verificar_verdade("João" in self.obter_url_atual())
21-
self.tipo("#searchInput", "Teatro Amazonas")
21+
self.digitar("#searchInput", "Teatro Amazonas")
2222
self.clique("#searchButton")
2323
self.verificar_texto("Teatro Amazonas", "#firstHeading")
2424
self.verificar_texto_do_link("Festival Amazonas de Ópera")

help_docs/syntax_formats.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,17 @@ class MinhaClasseDeTeste(CasoDeTeste):
324324
self.abrir("https://pt.wikipedia.org/wiki/")
325325
self.verificar_texto("Wikipédia")
326326
self.verificar_elemento('[title="Língua portuguesa"]')
327-
self.tipo("#searchInput", "João Pessoa")
327+
self.digitar("#searchInput", "João Pessoa")
328328
self.clique("#searchButton")
329329
self.verificar_texto("João Pessoa", "#firstHeading")
330330
self.verificar_elemento('img[alt*="João Pessoa"]')
331-
self.tipo("#searchInput", "Florianópolis")
331+
self.digitar("#searchInput", "Florianópolis")
332332
self.clique("#searchButton")
333333
self.verificar_texto("Florianópolis", "h1#firstHeading")
334334
self.verificar_elemento('img[alt*="Avenida Beira Mar"]')
335335
self.voltar()
336336
self.verificar_verdade("João" in self.obter_url_atual())
337-
self.tipo("#searchInput", "Teatro Amazonas")
337+
self.digitar("#searchInput", "Teatro Amazonas")
338338
self.clique("#searchButton")
339339
self.verificar_texto("Teatro Amazonas", "#firstHeading")
340340
self.verificar_texto_do_link("Festival Amazonas de Ópera")

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pip>=21.0.1;python_version>="3.6"
33
packaging>=20.9
44
setuptools>=44.1.1;python_version<"3.5"
55
setuptools>=50.3.2;python_version>="3.5" and python_version<"3.6"
6-
setuptools>=53.0.0;python_version>="3.6"
6+
setuptools>=53.1.0;python_version>="3.6"
77
setuptools-scm>=5.0.1
88
wheel>=0.36.2
99
attrs>=20.3.0

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "1.56.0"
2+
__version__ = "1.56.1"

seleniumbase/translate/master_dict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ class MD:
775775
md["js_type"][4] = "js_digitare"
776776
md["js_type"][5] = "JS入力"
777777
md["js_type"][6] = "JS_입력"
778-
md["js_type"][7] = "js_tipo"
778+
md["js_type"][7] = "js_digitar"
779779
md["js_type"][8] = "JS_введите"
780780
md["js_type"][9] = "js_escriba"
781781

@@ -1628,7 +1628,7 @@ class MD:
16281628
md["type"][4] = "digitare"
16291629
md["type"][5] = "入力"
16301630
md["type"][6] = "입력"
1631-
md["type"][7] = "tipo"
1631+
md["type"][7] = "digitar"
16321632
md["type"][8] = "введите"
16331633
md["type"][9] = "escriba"
16341634

@@ -1836,7 +1836,7 @@ class MD:
18361836
md["input"][4] = "digitare"
18371837
md["input"][5] = "入力"
18381838
md["input"][6] = "입력"
1839-
md["input"][7] = "tipo"
1839+
md["input"][7] = "digitar"
18401840
md["input"][8] = "введите"
18411841
md["input"][9] = "escriba"
18421842

seleniumbase/translate/portuguese.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def atualizar_texto(self, *args, **kwargs):
4141
# update_text(selector, text)
4242
return self.update_text(*args, **kwargs)
4343

44-
def tipo(self, *args, **kwargs):
44+
def digitar(self, *args, **kwargs):
4545
# type(selector, text) # Same as update_text()
4646
return self.type(*args, **kwargs)
4747

@@ -189,7 +189,7 @@ def js_atualizar_texto(self, *args, **kwargs):
189189
# js_update_text(selector, text)
190190
return self.js_update_text(*args, **kwargs)
191191

192-
def js_tipo(self, *args, **kwargs):
192+
def js_digitar(self, *args, **kwargs):
193193
# js_type(selector, text)
194194
return self.js_type(*args, **kwargs)
195195

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
5050
os.system("python -m pip install --upgrade 'twine>=1.15.0'")
5151
print("\n*** Installing tqdm: *** (Required for PyPI uploads)\n")
52-
os.system("python -m pip install --upgrade 'tqdm>=4.57.0'")
52+
os.system("python -m pip install --upgrade 'tqdm>=4.58.0'")
5353
print("\n*** Publishing The Release to PyPI: ***\n")
5454
os.system('python -m twine upload dist/*') # Requires ~/.pypirc Keys
5555
print("\n*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n")
@@ -107,7 +107,7 @@
107107
'packaging>=20.9',
108108
'setuptools>=44.1.1;python_version<"3.5"',
109109
'setuptools>=50.3.2;python_version>="3.5" and python_version<"3.6"',
110-
'setuptools>=53.0.0;python_version>="3.6"',
110+
'setuptools>=53.1.0;python_version>="3.6"',
111111
'setuptools-scm>=5.0.1',
112112
'wheel>=0.36.2',
113113
'attrs>=20.3.0',

0 commit comments

Comments
 (0)