Exemplo n.º 1
0
 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))
Exemplo n.º 2
0
def setUpModule():
    suppress_logging()
Exemplo n.º 3
0
def setUpModule():
    suppress_logging()
    start_remote_browser()
Exemplo n.º 4
0
def setUpModule():
    suppress_logging()
    global browser, page
    browser = launch(args=['--no-sandbox'])
    page = sync(browser.newPage())
Exemplo n.º 5
0
def setUpModule():
    suppress_logging()
    global browser, page
    browser = launch({'headless': True})
    page = sync(browser.newPage())