mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-24 10:11:35 +08:00
Improving failure message for specflow
This commit is contained in:
@@ -318,6 +318,10 @@ namespace Orchard.Specs.Bindings {
|
||||
?? _doc.DocumentNode
|
||||
.SelectSingleNode(string.Format("//a[@title='{0}']", submitText));
|
||||
|
||||
if (submit == null) {
|
||||
throw new ArgumentException("Text not found: " + submitText);
|
||||
}
|
||||
|
||||
urlPath = HttpUtility.HtmlDecode(submit.Attributes["href"].Value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user