Commit fb1a7216 fb1a72165ae5f9b98ac45a8934206ba1a9319611 by hexid

Update page content at the start of the second getElementsInfo() test

1 parent b7f4bdeb
......@@ -183,6 +183,7 @@ casper.test.begin('ClientUtils.getElementsInfo() first element tests', 10, funct
});
casper.test.begin('ClientUtils.getElementsInfo() second element tests', 10, function(test) {
casper.page.content = '<a href="plop" class="plip plup"><i>paf</i></a><a href="plap" class="plip plup"><i>puf</i></a>';
var info = casper.getElementsInfo('a.plip');
test.assertEquals(info[1].nodeName, 'a', 'ClientUtils.getElementsInfo() retrieves second element name');
test.assertEquals(info[1].attributes, {
......