File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ async def main():
73
73
await page.screenshot(path = f ' example- { browser_type.name} .png ' )
74
74
await browser.close()
75
75
76
- asyncio.get_event_loop().run_until_complete (main())
76
+ asyncio.run (main())
77
77
```
78
78
79
79
#### With pytest
@@ -152,7 +152,7 @@ async def main():
152
152
await page.screenshot(path = ' colosseum-iphone.png' )
153
153
await browser.close()
154
154
155
- asyncio.get_event_loop().run_until_complete (main())
155
+ asyncio.run (main())
156
156
```
157
157
</details >
158
158
@@ -199,7 +199,7 @@ async def main():
199
199
print (dimensions)
200
200
await browser.close()
201
201
202
- asyncio.get_event_loop().run_until_complete (main())
202
+ asyncio.run (main())
203
203
```
204
204
</details >
205
205
@@ -246,7 +246,7 @@ async def main():
246
246
await page.goto(' http://todomvc.com' )
247
247
await browser.close()
248
248
249
- asyncio.get_event_loop().run_until_complete (main())
249
+ asyncio.run (main())
250
250
```
251
251
</details >
252
252
You can’t perform that action at this time.
0 commit comments