SeleniumBase/examples/test_docs_site.py

23 lines
1012 B
Python

from seleniumbase import BaseCase
BaseCase.main(__name__, __file__)
class DocsSiteTests(BaseCase):
def test_docs(self):
self.open("https://seleniumbase.io/help_docs/customizing_test_runs/")
self.assert_text("Command Line Options", "h1")
self.js_click('a[href$="/examples/example_logs/ReadMe/"]')
self.assert_text("Dashboard / Reports", "h1")
self.js_click('a[href$="/seleniumbase/console_scripts/ReadMe/"]')
self.assert_text("Console Scripts", "h1")
self.js_click('a[href$="/help_docs/syntax_formats/"]')
self.assert_text("Syntax Formats", "h1")
self.js_click('a[href$="/recorder_mode/"]')
self.assert_text("Recorder Mode", "h1")
self.js_click('a[href$="/method_summary/"]')
self.assert_text("API Reference", "h1")
self.js_click('a[href$="/uc_mode/"]')
self.assert_text("UC Mode", "h1")
self.click('img[alt="logo"]')
self.assert_text("SeleniumBase", "h1")