Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Fix broken ad deletion #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix broken ad deletion #28

wants to merge 1 commit into from

Conversation

sebthom
Copy link
Contributor

@sebthom sebthom commented Jul 7, 2021

Fixes #27

With the current web design ad deletion fails with:

        Deleting ad ...
Waiting 1772 ms ...
        Not found by ID
Traceback (most recent call last):
  File "kleinanzeigen.py", line 537, in <module>
    delete_ad(driver, ad)
  File "kleinanzeigen.py", line 110, in delete_ad
    btn_del = ad_id_elem.find_elements_by_class_name("managead-listitem-action-delete")[1]
IndexError: list index out of range

With the current web design ad deletion fails with:
```
        Deleting ad ...
Waiting 1772 ms ...
        Not found by ID
Traceback (most recent call last):
  File "kleinanzeigen.py", line 537, in <module>
    delete_ad(driver, ad)
  File "kleinanzeigen.py", line 110, in delete_ad
    btn_del = ad_id_elem.find_elements_by_class_name("managead-listitem-action-delete")[1]
IndexError: list index out of range
```
@jniggemann
Copy link

Had the same issue today, deleted manually as I can't update right now...

@kahironimashte
Copy link

Implementend the fixed lines in kleinanzeigen.py by hand. Fix works, ads get deleted. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Delete button not found
3 participants