@@ -0,0 +1,1602 @@
+package com.github.mike10004.seleniumhelp;%0A%0Aimport io.github.bonigarcia.wdm.ChromeDriverManager;%0Aimport org.apache.commons.io.FileUtils;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.chrome.ChromeOptions;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.nio.file.Path;%0A%0Apublic class ReadmeExample %7B%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        ChromeDriverManager.getInstance().setup();%0A        ChromeOptions options = new ChromeOptions();%0A        ChromeWebDriverFactory factory = ChromeWebDriverFactory.builder()%0A                .chromeOptions(options)%0A                .build();%0A        Path scratchDir = java.nio.file.Files.createTempDirectory(%22selenium-help-example%22);%0A        try %7B%0A            TrafficCollector collector = TrafficCollector.builder(factory)%0A                    .collectHttps(new AutoCertificateAndKeySource(scratchDir))%0A                    .build();%0A            HarPlus%3CString%3E harPlus = collector.collect(new TrafficGenerator%3CString%3E() %7B%0A                @Override%0A                public String generate(WebDriver driver) %7B%0A                    driver.get(%22https://www.example.com/%22);%0A                    return driver.getTitle();%0A                %7D%0A            %7D);%0A            System.out.println(%22collected page with title %22 + harPlus.result);%0A            File harFile = File.createTempFile(%22selenium-help-example%22, %22.har%22);%0A            harPlus.har.writeTo(harFile);%0A            System.out.format(%22wrote har to %25s%25n%22, harFile);%0A        %7D finally %7B%0A            FileUtils.forceDelete(scratchDir.toFile());%0A        %7D%0A    %7D%0A%0A%7D%0A

add readme example