Skip to content

Commit

Permalink
FIX selecting price type
Browse files Browse the repository at this point in the history
selecting the wanted index doesn't trigger a change event which is necessary to update  internal variables regarding the price type
  • Loading branch information
provinzio authored and sebthom committed May 30, 2024
1 parent 72283bf commit 929459a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kleinanzeigen_bot/web_scraping_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ async def web_select(self, selector_type:By, selector_value:str, selected_value:
{{
if(element.options[i].value == "{selected_value}") {{
element.selectedIndex = i;
element.dispatchEvent(new Event('change', {{ bubbles: true }}));
break;
}}
}}
Expand Down

0 comments on commit 929459a

Please sign in to comment.