You can import third-party modules to the test code and inject scripts into tested webpages. To import a module to a test file, use the import statement. If a Node.js module or a JavaScript file can be executed in the browser, you can inject it into the tested page. For more information about how to inject scripts, see Inject Scripts Into Tested Pages.