Reputation: 13
I tried all the Id and class options. I tried to pull the element using the last tag. But it writes [object Object] expression to the console. This object cannot be fragmented in any way.
var webpage = require('webpage');
var page = webpage.create();
page.open('https://arsiv.mackolik.com/Canli-Sonuclar',function (){
result = page.evaluate(function (){
return document.getElementsByTagName("tbody");
});
console.log(result);
phantom.exit();
})
result is [object Object].
How can I access the data in tbody? I get an error when I try to parse it with foreach and print it to the console.
Upvotes: 0
Views: 64