Вы не присвоили какое-либо значение свойству UrlPath
. Присвойте требуемый URL-адрес свойству UrlPath
, а затем используйте его для перехода к методу.
Urlpath = "http://localhost/laravel/project/public/";
Driver.Navigate().GoToUrl(Urlpath);
РЕДАКТИРОВАТЬ Вы должны вызвать Navigateпосле назначения свойства UrlPath
из приватной строки dialog.ResponseText
Urlpath {get;задавать;}
private void Button_URL(object sender, RoutedEventArgs e)
{
var dialog = new MyDialog();
if (dialog.ShowDialog() == true)
{
MessageBox.Show("Refreshing a URL requires you to select a folder.");
string Urlpath = dialog.ResponseText;
Status_HTML.Content = "Selected:" + "\n" + Urlpath + "\n" + "Save and/or edit any file in your folder to get started!";
Driver.Navigate().GoToUrl(Urlpath);
}
}