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