import org.openqa.selenium.safari.SafariDriver; import org.openqa.selenium.safari.SafariOptions; import org.openqa.selenium.WebDriver; public class SafariDriverDebug { public static void main(String[] args) throws Exception{ SafariOptions options = new SafariOptions(); options.setCapability("safari:diagnose", "true"); //options.setCapability("safari:automaticProfiling", "true"); WebDriver driver = new SafariDriver(options); // Launch Website driver.navigate().to("https://webrtc.github.io/samples/src/content/devices/input-output/"); Thread.sleep(3000); // Close the Browser driver.close(); } }