|
@@ -11,6 +11,7 @@ if True: # NOTE: prevent formatter from sorting the imports (nicegui must come
|
|
|
|
|
|
from justpy.htmlcomponents import JustpyBaseComponent, WebPage
|
|
from justpy.htmlcomponents import JustpyBaseComponent, WebPage
|
|
from selenium import webdriver
|
|
from selenium import webdriver
|
|
|
|
+from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
|
|
|
|
|
|
from .screen import Screen
|
|
from .screen import Screen
|
|
|
|
|
|
@@ -26,6 +27,12 @@ def chrome_options(chrome_options: webdriver.ChromeOptions) -> webdriver.ChromeO
|
|
return chrome_options
|
|
return chrome_options
|
|
|
|
|
|
|
|
|
|
|
|
+@pytest.fixture
|
|
|
|
+def capabilities(capabilities):
|
|
|
|
+ capabilities['goog:loggingPrefs'] = {'browser': 'ALL'}
|
|
|
|
+ return capabilities
|
|
|
|
+
|
|
|
|
+
|
|
@pytest.fixture
|
|
@pytest.fixture
|
|
def selenium(selenium: webdriver.Chrome) -> webdriver.Chrome:
|
|
def selenium(selenium: webdriver.Chrome) -> webdriver.Chrome:
|
|
selenium.implicitly_wait(0.1)
|
|
selenium.implicitly_wait(0.1)
|