protected String getScreenshotPath()
    {
        File dir = null;

        if (screenshotPath == null)
        {
            String testOutputPath = System.getProperty("testReportDirectory");

            if (testOutputPath != null)
            {
                dir = new File(testOutputPath);

                if (dir != null && !dir.exists())
                {
                    dir.mkdir();
                }

                screenshotPath = testOutputPath + "/screenshots";

                dir = new File(screenshotPath);

                if (dir != null && !dir.exists())
                {
                    dir.mkdir();
                }

                screenshotPath = screenshotPath + "/" + this.getClass().getSimpleName();
            }
            else
            {
                screenshotPath = SCREENSHOT_PATH;
            }

            dir = new File(screenshotPath);

            if (dir != null && !dir.exists())
            {
                dir.mkdir();
            }

        }

        return screenshotPath;
    }