Skip to content

Update translations, examples, and dependencies #827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion examples/swag_labs_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions examples/test_download_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions examples/translations/portuguese_test_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
6 changes: 3 additions & 3 deletions help_docs/syntax_formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion seleniumbase/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# seleniumbase package
__version__ = "1.56.0"
__version__ = "1.56.1"
6 changes: 3 additions & 3 deletions seleniumbase/translate/master_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions seleniumbase/translate/portuguese.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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',
Expand Down