99import pyppeteer
1010from pyppeteer .errors import ElementHandleError
1111
12- from . base import BaseTestCase
13- from .frame_utils import attachFrame
12+
13+ from .utils import attachFrame
1414import pytest
1515
1616
17- class TestBoundingBox ( BaseTestCase ) :
17+ class TestBoundingBox :
1818 @sync
1919 async def test_bounding_box (self ):
2020 await self .page .setViewport ({'width' : 500 , 'height' : 500 })
@@ -83,7 +83,7 @@ async def test_svg(self):
8383 assert pptrBoundingBox == webBoundingBox
8484
8585
86- class TestBoxModel ( BaseTestCase ) :
86+ class TestBoxModel :
8787 def setUp (self ):
8888 self ._old_debug = pyppeteer .DEBUG
8989 super ().setUp ()
@@ -173,7 +173,7 @@ async def test_debug_error(self):
173173 assert await element .boxModel () is None
174174
175175
176- class TestContentFrame ( BaseTestCase ) :
176+ class TestContentFrame :
177177 @sync
178178 async def test_content_frame (self ):
179179 await self .page .goto (self .url + 'empty' )
@@ -183,7 +183,7 @@ async def test_content_frame(self):
183183 assert frame == self .page .frames [1 ]
184184
185185
186- class TestClick ( BaseTestCase ) :
186+ class TestClick :
187187 @sync
188188 async def test_clik (self ):
189189 await self .page .goto (self .url + 'assets/button.html' )
@@ -242,7 +242,7 @@ async def test_br_node(self):
242242 assert 'Node is either not visible or not an HTMLElement' == cm .exception .args [0 ]
243243
244244
245- class TestHover ( BaseTestCase ) :
245+ class TestHover :
246246 @sync
247247 async def test_hover (self ):
248248 await self .page .goto (self .url + 'assets/scrollable.html' )
@@ -251,7 +251,7 @@ async def test_hover(self):
251251 assert await self .page .evaluate ('document.querySelector("button:hover").id' ) == 'button-6'
252252
253253
254- class TestIsIntersectingViewport ( BaseTestCase ) :
254+ class TestIsIntersectingViewport :
255255 @sync
256256 async def test_is_intersecting_viewport (self ):
257257 await self .page .goto (self .url + 'assets/offscreenbuttons.html' )
@@ -261,7 +261,7 @@ async def test_is_intersecting_viewport(self):
261261 assert await button .isIntersectingViewport () == visible
262262
263263
264- class TestScreenshot ( BaseTestCase ) :
264+ class TestScreenshot :
265265 @sync
266266 async def test_screenshot_larger_than_viewport (self ):
267267 await self .page .setViewport ({'width' : 500 , 'height' : 500 })
@@ -290,7 +290,7 @@ async def test_screenshot_larger_than_viewport(self):
290290 assert {'w' : 500 , 'h' : 500 } == size
291291
292292
293- class TestQuerySelector ( BaseTestCase ) :
293+ class TestQuerySelector :
294294 @sync
295295 async def test_J (self ):
296296 await self .page .setContent (
0 commit comments