T
T
Timur Tuz2015-04-02 10:40:44
.NET
Timur Tuz, 2015-04-02 10:40:44

In Awesomium, an XPath search always returns a non-empty object. How to process?

Firework! I do

Dim errDiv As JSObject = WebControl1.ExecuteJavascriptWithResult("document.evaluate(""h2"", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ).singleNodeValue")
Console.WriteLine(errDiv Is Nothing)

Always returns False. I can't figure out how to check for the presence of an object (xpath is a prerequisite).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Tuz, 2015-04-02
@TTA

found a solution
If errDiv.Type = JSObjectType.Invalid Then...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question