Script URL JavaScript Injection

Inject a custom script URL to interact with the website before taking a screenshot.

For example, run JavaScript code to hide or modify elements such as menus and input forms.

Custom Script Example

The example below is using a JavaScript file to interact with a website:

// Line breaks added for readability

The JavaScript contained in the demo will enter the search criteria 'Car Rental' and click on the search button:

document.querySelector('input[name=q]').value = 'Car Rental';

Screenshot with JavaScript Injection