def test_custom_tag_theme_default(self): from wdom.util import suppress_logging suppress_logging() from wdom.themes import default from wdom import themes self.doc.register_theme(default) elm = Tag(parent=self.doc.body) elm.innerHTML = '<div is="container"></div>' self.assertTrue(isinstance(elm.firstChild, default.Container)) self.assertTrue(isinstance(elm.firstChild, themes.Container))
def setUpModule(): suppress_logging()
def setUpModule(): suppress_logging() start_remote_browser()
def setUpModule(): suppress_logging() global browser, page browser = launch(args=['--no-sandbox']) page = sync(browser.newPage())
def setUpModule(): suppress_logging() global browser, page browser = launch({'headless': True}) page = sync(browser.newPage())