How do I enable remote automation in Safari?

How do I enable remote automation in Safari?

To enable remote automation in Safari, enable WebDriver support.

  1. To enable the Develop menu in Safari, go to Safari > Preferences > Advanced.

  2. To enable Remote Automation, go to the menu bar and select Develop > Allow Remote Automation.