Camme/webdriverjs — Issue #9: Maybe I don't understand how to use this api...
Author: stringa
Created: 2011-12-28 05:49:11+00:00
State: open

but all I'm trying todo is grab all the anchor elements on the page. The script runs and compiles but what I expect and what I get are two different things. Is this because the api isn't complete? Do I not know how to use this? I ended up debugging this with chrome and I'm gonna display my expected and actual inline...

Thanks in advance...
stringa

var webdriverjs = require("webdriverjs");
var client = webdriverjs.remote();

client.init();
client.url("file://localhost/Users/stringa/ddi/trunk/mobile/tests/qunit/test_index.html", function() {

client.elements('tag name', 'a', function (result) {

// actual: result.value = [ {ELEMENT:0}, {ELEMENT:1} ]
// expected: result.value = [ { ELEMENT;jsonStringOfData }, { ELEMENT;jsonStringOfData } ]
})
});