I am trying to create a valid URL:
private string Urlpath { get; set; }
Driver.Navigate().GoToUrl(Urlpath);
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!";
}
}
Urlpath is a string value from an input box like http://localhost/laravel/project/public/ but it says that its not a valid url. Actually it says System.ArgumentNullException: Argument 'url' cannot be null. because it probably only accept valid Urls but there's a string value. How can I turn this string into a URL?