Used to Inject window.onerror code for functional testing via selenium