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

Fix broken ad deletion#28

Open
sebthom wants to merge 1 commit intoSecond-Hand-Friends:masterfrom
sebthom:patch-3
Open

Fix broken ad deletion#28
sebthom wants to merge 1 commit intoSecond-Hand-Friends:masterfrom
sebthom:patch-3

Conversation

@sebthom
Copy link
Copy Markdown
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
Copy Markdown

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

@kahironimashte
Copy link
Copy Markdown

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