You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
jinohkang-theori
changed the title
[Bug]: select_option(index=0) incorrectly treated as select_option(index=None)
[Bug]: select_option(index=0) incorrectly interpreted as select_option(index=None)Nov 21, 2024
Version
1.48.0
Steps to reproduce
locator.select_option(index=0)
on a locator.locator.select_option(value="")
on a locator.Expected behavior
Actual behavior
index=None
is specified.value=None
is specified.Additional context
The
convert_select_option_values
function is implemented incorrectly:playwright-python/playwright/_impl/_element_handle.py
Lines 395 to 406 in c4df71c
The value, index, and label should be checked for
None
, not its truthiness.Minimal reproducer:
Environment
The text was updated successfully, but these errors were encountered: