MCPcopy Index your code
hub / github.com/nodejs/node / selenium

Function selenium

deps/libffi/testsuite/emscripten/conftest.py:72–80  ·  view source on GitHub ↗
(selenium_class_scope, request)

Source from the content-addressed store, hash-verified

70
71@fixture(scope="function")
72def selenium(selenium_class_scope, request):
73 selenium = selenium_class_scope
74 request.cls.call_number += 1
75 # Refresh page every 50 calls to prevent firefox out of memory errors
76 if request.cls.call_number % 50 == 0:
77 selenium.driver.refresh()
78 selenium.javascript_setup()
79 selenium.clean_logs()
80 yield selenium
81
82
83@fixture(scope="session")

Callers

nothing calls this directly

Calls 2

javascript_setupMethod · 0.80
refreshMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…