I'm trying to implement the selection of a local file and send its path to js.
_mainWindow.Browser.ExecuteScriptAsync(
"document.getElementById('location').value=" +
'\'' + openFileDialog.FileName + '\'');
this option returns a path without delimiters - "PathTofile", although the path itself is written to the file - "Path\To\File". tell me, please, what am I doing wrong?