Answer the question
In order to leave comments, you need to log in
How to access element by class name using phantom and nodejs?
It turns out
to get the full content of the page https://www.leagueofgraphs.com/en/summoner/champio....
Need to get to class data table class=\ "data_table summoner_champions_details_table sortable_table\"
How to get access to these classes?
(async function() {
const instance = await phantom.create();
const page = await instance.createPage();
await page.on("onResourceRequested", function(requestData) {
console.info('Requesting', requestData.url)
});
const status = await page.open('https://www.leagueofgraphs.com/ru/summoner/champions/br/jovironeBR');
console.log(status);
try {
var dd = await page.evaluate(function ()
{
var temp = document.getElementsByClassName('data_table summoner_champions_details_table sortable_table')[0]
return (temp);
})
console.log( dom);
}
catch (err) {
console.log(err);
}
await instance.exit();
}());
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question