XPath não está funcionando para clicar em um botão de um script Greasemonkey

Eu gostaria de abrir um link que contenha a palavragoogle. Se parece com isso:

 <input class="submit" style="background: #409999; border-radius: 10px;" value="open" onclick="Open('143615', '1', 'https://www.google.de/');" type="submit">


Eu tentei este código Greasemonkey:

var snapResults = document.evaluate("//input[contains(@onclick, 'test')]",document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

for (var i = snapResults.snapshotLength - 1; i >= 0; i--) {
    var elm = snapResults.snapshotItem(i);
    // do stuff with elm

    if (elm) //open the window, which contains "test"
    {
        elm.singleNodeValue.click(); //there is no effect ...
        alert(i+". element opend");
    }           
    else
    {
        alert(i+". Not found.");
    }
}

Não tem efeito. Eu gostaria de abrir a janela via Greasemonkey (clique em evento?)

Quando eu usoalert(elm.href); diz que é "indefinido". Mas o XPath funciona quando eu tento emFirePath.

questionAnswers(1)

yourAnswerToTheQuestion