Skip to content
Advertisement

Selenium, Scrolling page

I am trying to scroll webpage with Selenium- “https://jobsearch.az/vacancies”. But, you see when you open it and click on vacancy, there are two pages side by side to scroll. I need to scroll the one in the middle, so selenium can go and take info from other jobs too. But, now, it stops when it comes to 14, which is all you can see if you dont scroll.

JavaScript

I wrote all 3 techniques, but nothing works.

Advertisement

Answer

I don’t know if you need to use selenium. But I have an example on another library – requests. Since the api uses cookies, we must use the session to pass the XSRF token.

JavaScript

OUTPUT:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement