Forum Discussion
marin
13 years agoFrequent Contributor
...found out in the meantime (this thread was helpful).
>
Normal
0
21
false
false
false
DE
X-NONE
var tmp = page.EvaluateXPath("//INPUT[@id = 'myId']"); //searching for input element with ID "myId"
// Check the result
if (tmp != null)
{
// If the element was found,
// convert the array to the JScript-compatible format
var arr = (new VBArray(tmp)).toArray();
// and capture the value
var temp2 = arr[0].Value;
}
else
{
// If the element was not found, post a message to the log
Log.Error("The element was not found.");
}