Skip to content

Commit 2618b9d

Browse files
authored
Update README.md
1 parent 07c706c commit 2618b9d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ from caqui import synchronous
3636
from caqui.easy.capabilities import ChromeOptionsBuilder
3737
from caqui.easy.options import ChromeOptionsBuilder
3838
from 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
4154
def setup_environment():
@@ -46,7 +59,6 @@ def setup_environment():
4659
yield page
4760
page.quit()
4861

49-
5062
@mark.asyncio
5163
async def test_switch_to_parent_frame_and_click_alert(setup_environment: AsyncPage):
5264
page = setup_environment

0 commit comments

Comments
 (0)