One element of the panic blocks the other, what do we do?
-
There's a steamer in which there's no change in the reference to the propagation element in the transition, tried to write a pressure cycle on the propagation element, but it's making a mistake of the element not clickable because it's covered by another element.
Message: Element <div id="goods_back" class="back_pagin"> is not clickable at point (674,566) because another element <a href="/led-tel-r-gazer-tv32-hs2-g/p71261031/"> obscures it
It doesn't make any sense why only one product is off the page, not all.
I understand that it's just a litter site because there's something that pulls an impermissible element from.
Mostly, my problem, which I ask for your help, is to help me build a change in the element of panic because it's supposed to work, but nothing like that.
Here's the password code:
print('Load:', url) driver.get(url) while True:
for item_el in driver.find_elements_by_css_selector(".tile-container .goods-item .goods-item-content"): try:name = item_el.find_element_by_class_name('good-description').text except NoSuchElementException:name = '' # Не у всех товаров есть цена try: price = item_el.find_element_by_class_name('price-wrapper').text except NoSuchElementException: price = '-' # try:nal = item_el.find_element_by_css_selector('').text # except NoSuchElementException: # nal = " " row = name, price, #nal print(row) items.append(row) try: a_next_page = driver.find_element_by_css_selector('.pages #goods_back') a_next_page.click() except NoSuchElementException: break
Here's a reference to the website I'm trying to evaporate: https://eldorado.ua/search/?q=Gazer
There's a full code if anyone needs: https://dpaste.org/N1JD
-
The first problem is that the element of propagation is determined at a time when the the entire product has not yet been unloaded, it is at the top of the page (where the stove with the merchandise goes down). Do the usual. time.sleep(2) Before entering the cycle, for example, do not import the time module.
And the problem of downloading one element is that you're moving on the onset page on the first iteration, you're going to have to make a shift in the range after the cycle, not in it.