S
S
san_m_m2021-01-13 11:51:47
Python
san_m_m, 2021-01-13 11:51:47

How to deal with data loading pause (selenium parsing)?

Good afternoon!

It is necessary to fully expand this page, but I am faced with the fact that the data on the site is loaded with some delay, so it does not find the required class. What to do in such a situation?

from selenium import webdriver

driver = webdriver.Chrome('D:\chromedriver.exe')
driver.get('https://gosuslugi.primorsky.ru/registry/taxi.htm')

css = "load-more btn btn-primary"
driver.find_elements_by_css_selector(css).click()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wispik, 2021-01-13
@san_m_m

link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question