T
T
TechNOIR2017-03-03 11:22:45
PHP
TechNOIR, 2017-03-03 11:22:45

selenium. How to get a list of elements if the list is scrollable?

Good afternoon.
I want to get a list of artists on Deezer.com
But I'm only getting first results. But there are more artists on the page if you scroll down - they appear.
How can I get the whole list in this case? thanks in advance

[Reflection.Assembly]::LoadFrom("C:\selenium\net40\WebDriver.dll")
$ie = New-Object OpenQA.Selenium.PhantomJS.PhantomJSDriver
$url = "http://www.deezer.com/tags/industrial_rock/artist"
$ie.Navigate().GoToUrl($url)
$ie.FindElementsByClassName("evt-click").getattribute("href") | sort -unique
$ie.Quit()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question