Update example tests
This commit is contained in:
parent
327a237560
commit
c6921a884d
|
@ -5,7 +5,7 @@ BaseCase.main(__name__, __file__)
|
|||
|
||||
class CoffeeCartTests(BaseCase):
|
||||
def test_1_verify_nav_link_to_coffee_cart(self):
|
||||
self.open("https://seleniumbase.io/")
|
||||
self.open("https://seleniumbase.io/help_docs/customizing_test_runs/")
|
||||
self.js_click('nav a:contains("Coffee Cart")')
|
||||
self.assert_title("Coffee Cart")
|
||||
self.assert_element('h4:contains("Espresso")')
|
||||
|
|
|
@ -32,6 +32,8 @@ class CanvasTests(BaseCase):
|
|||
|
||||
def test_click_with_offset(self):
|
||||
self.open("https://seleniumbase.io/canvas/")
|
||||
if self.undetectable:
|
||||
self.skip("Skip this test in undetectable mode.")
|
||||
self.assert_title_contains("Canvas")
|
||||
self.highlight("canvas")
|
||||
rgb = self.get_pixel_colors()
|
||||
|
|
|
@ -42,6 +42,11 @@ class DownloadTests(BaseCase):
|
|||
or self.browser == "ie"
|
||||
or (self.is_chromium() and self.guest_mode and not self.headless)
|
||||
or (self.undetectable and (self.headless or self.headless2))
|
||||
or (
|
||||
self.is_chromium()
|
||||
and int(self.get_chromium_version()) >= 110
|
||||
and self.headless
|
||||
)
|
||||
):
|
||||
whl_href = self.get_attribute(whl_selector, "href")
|
||||
tar_href = self.get_attribute(tar_selector, "href")
|
||||
|
|
Loading…
Reference in New Issue