Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed May 13, 2024
1 parent 64cc4cb commit 00add3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
21 changes: 9 additions & 12 deletions examples/hack_the_planet.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,11 @@ def test_all_your_base_are_belong_to_us(self):
self.highlight('form[role="search"]', loops=8)

self.open("https://github.com/features/actions")
self.set_text_content('a[href="/pricing"]', aybabtu)
self.set_text_content("h1 span:nth-child(1)", ayb)
self.set_text_content("h1 span:nth-of-type(2)", "ARE")
self.set_text_content("h1 span:nth-of-type(3)", "BELONG")
self.set_text_content("h1 span:nth-of-type(4)", "TO")
self.set_text_content("h1 span:nth-of-type(5)", "US")
self.highlight('a[href="/pricing"]', loops=6, scroll=False)
self.highlight("h1.h2-mktg", loops=7, scroll=False)
self.set_text_content("h2.h2-mktg", aybabtu)
self.set_text_content("a.btn-large-mktg", aybabtu)
self.highlight("h2.h2-mktg", loops=8, scroll=False)
self.scroll_to("h2.h2-mktg")
self.highlight("a.btn-large-mktg", loops=8, scroll=False)

self.open("https://dev.to/top/infinity")
self.click_if_visible('button[aria-label="Close campaign banner"]')
Expand Down Expand Up @@ -290,14 +287,14 @@ def test_all_your_base_are_belong_to_us(self):
self.highlight("h1", loops=10, scroll=False)

self.open("https://wordpress.com/")
zoom_out = "h1.is-page-header{zoom: 0.8;-moz-transform: scale(0.8);}"
zoom_out = "h1{zoom: 0.8;-moz-transform: scale(0.8);}"
self.add_css_style(zoom_out)
zoom_in = "a.wp-element-button{zoom: 1.4;-moz-transform: scale(1.4);}"
self.add_css_style(zoom_in)
self.set_text_content("h1.is-page-header", aybabtu)
self.set_text_content("h1", aybabtu)
self.set_text_content("a.wp-element-button", "Use SeleniumBase!")
self.highlight("h1.is-page-header", loops=6, scroll=False)
self.highlight("a.wp-element-button", loops=4, scroll=False)
self.highlight("h1", loops=8, scroll=False)
self.highlight("a.wp-element-button", loops=8, scroll=False)

self.open("https://seleniumbase.com/")
self.set_text_content("h1", aybabtu)
Expand Down
1 change: 0 additions & 1 deletion examples/presenter/fundamentals.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def test_presentation(self):
"driver = webdriver.Chrome(options=options)\n"
),
)

self.add_slide(
"<h4>Test frameworks wrap Selenium to improve things!</h4><hr />\n"
"<br />"
Expand Down

0 comments on commit 00add3a

Please sign in to comment.