Selenium, creating simple dialog box while running chrome tests using Java
<p>Learning <code>Java</code> &amp; <code>Selenium</code>. I researched dialog box and came up with this:</p>

<pre><code>&lt;Code to run some selenium test&gt;

JOptionPane.showMessageDialog(frame,
            "Completed Boundaries Test.  Press Ok for next test.");

&lt;Code to run some other selenium test&gt;
</code></pre>

<p>Idea is to have such dialog statement between tests so that user can validate the run, instead of relying on sleep and visually looking at the result--which is prone to error.</p>

<p>I couldn't get it to work.  I don't know what to pass for frame.
Here is my chrome driver and first test:</p>

<pre><code>System.setProperty("webdriver.chrome.driver", "C:\\ChromeDriver\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://preview.harriscountyfws.org/");
driver.manage().window().maximize();

JOptionPane.showMessageDialog(frame,
            "Screen Maximize Completed.  Press ok for next test.");

System.out.println("County Lines Checkbox Test, Default is checked, let's uncheck");
WebElement chkCounties = driver.findElement(By.id("chkCounties"));
chkCounties.click();
</code></pre>