File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,19 @@ from caqui import synchronous
3636from caqui.easy.capabilities import ChromeOptionsBuilder
3737from caqui.easy.options import ChromeOptionsBuilder
3838from caqui.easy.server import Server
39+ from time import sleep
40+
41+ SERVER_PORT = 9999
42+ SERVER_URL = f " http://localhost: { SERVER_PORT } "
43+ PAGE_URL = " file:///sample.html"
44+
45+ @fixture (autouse = True , scope = " session" )
46+ def setup_server ():
47+ server = Server.get_instance(port = SERVER_PORT )
48+ server.start()
49+ yield
50+ sleep(3 )
51+ server.dispose()
3952
4053@fixture
4154def setup_environment ():
@@ -46,7 +59,6 @@ def setup_environment():
4659 yield page
4760 page.quit()
4861
49-
5062@mark.asyncio
5163async def test_switch_to_parent_frame_and_click_alert (setup_environment : AsyncPage):
5264 page = setup_environment
You can’t perform that action at this time.
0 commit comments