Merge pull request #827 from seleniumbase/update-translations-and-examples

Update translations, examples, and dependencies
This commit is contained in:
Michael Mintz 2021-02-25 15:23:21 -05:00 committed by GitHub
commit a86b8cc719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 21 additions and 20 deletions

View File

@ -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

View File

@ -84,7 +84,7 @@ class SwagLabsTests(BaseCase):
["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)

View File

@ -11,8 +11,9 @@ class DownloadTests(BaseCase):
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 (

View File

@ -8,17 +8,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")

View File

@ -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")

View File

@ -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

View File

@ -1,2 +1,2 @@
# seleniumbase package
__version__ = "1.56.0"
__version__ = "1.56.1"

View File

@ -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"

View File

@ -41,7 +41,7 @@ class CasoDeTeste(BaseCase):
# 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 @@ class CasoDeTeste(BaseCase):
# 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)

View File

@ -49,7 +49,7 @@ if sys.argv[-1] == 'publish':
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")
@ -107,7 +107,7 @@ setup(
'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',