Update example tests

This commit is contained in:
Michael Mintz 2022-05-26 20:14:48 -04:00
parent e866c95a57
commit ed6f8cf859
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ from seleniumbase import BaseCase
class GoogleTests(BaseCase):
@parameterized.expand(
[
["PyPI", "pypi.org", 'img[alt="PyPI"]'],
["Download Python", "Download Python", "img.python-logo"],
["Wikipedia", "www.wikipedia.org", "img.central-featured-logo"],
["SeleniumBase GitHub.com", "SeleniumBase", 'img[title*="Sele"]'],
]

View File

@ -24,7 +24,7 @@ class CanvasTests(BaseCase):
rgb = self.get_pixel_colors()
self.assert_equal(rgb, [221, 242, 231]) # Looks greenish
self.click_with_offset("canvas", 500, 350)
self.highlight("canvas")
self.highlight("canvas", loops=5)
rgb = self.get_pixel_colors()
self.assert_equal(rgb, [39, 42, 56]) # Blue by hamburger

View File

@ -34,7 +34,7 @@ class ChromedriverTests(BaseCase):
print(message)
if major_chromedriver_version < major_chrome_version:
install_sb = (
"seleniumbase install chromedriver %s" % major_chrome_version
"seleniumbase get chromedriver %s" % major_chrome_version
)
pr_install_sb = c1 + install_sb + cr
up_msg = "You may want to upgrade your version of chromedriver:"