I keep getting this error when the program is trying to output a file.
public void AccTest()
{
Console.WriteLine("AccTest started for small test");
string title = chromeDriver.Title;
string url = chromeDriver.Url;
Console.WriteLine(title + " :: " + url);
AxeResult axeResult = new AxeBuilder(chromeDriver).WithTags("wcag2a", "wcag2aa").Analyze();
//Creates the Chrome HTML report and sends it the reports folder
Directory.CreateDirectory(Application.StartupPath + "\\Reports");
string path = Path.Combine(Application.StartupPath + "\\Reports", url + "-AccReport.html");
chromeDriver.CreateAxeHtmlReport(axeResult, path);
Console.WriteLine("Report Printed");
}
The file will happily output the url to the console but won't put it onto the Path.Combine. is there a way to get to output?