fix: refactored setting shipping size (#584)

Co-authored-by: Jens Bergmann <1742418+1cu@users.noreply.github.com>
This commit is contained in:
Heavenfighter
2025-07-17 12:25:01 +02:00
committed by GitHub
parent 4a7284a46e
commit 8070a95d26
2 changed files with 15 additions and 14 deletions

View File

@@ -1046,7 +1046,7 @@ class TestKleinanzeigenBotShippingOptions:
return csrf_token_elem
if selector_value == "myftr-shppngcrt-frm":
return shipping_form_elem
if selector_value == '.SingleSelectionItem--Main input[type=radio][data-testid="Klein"]':
if selector_type == By.ID and selector_value.startswith("radio-button-"):
return shipping_size_radio
if selector_value == "postad-category-path":
return category_path_elem