@pytest.fixture
def caret_tester(js_tester):
 caret_tester = CaretTester(js_tester)
 caret_tester.js.webview.show()
 return caret_tester

@ pytest . fixture def caret_tester ( js_tester ) : caret_tester = CaretTester ( js_tester ) caret_tester . js . webview . show ( ) return caret_tester
helper fixture to test caret browsing positions .