We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41c6a76 commit 4c5b399Copy full SHA for 4c5b399
browsergym/core/src/browsergym/core/observation.py
@@ -568,4 +568,8 @@ def extract_focused_element_bid(page: playwright.sync_api.Page):
568
except playwright.sync_api.TimeoutError:
569
focused_bid = ""
570
571
+ # convert null / None to empty string
572
+ if not focused_bid:
573
+ focused_bid = ""
574
+
575
return focused_bid
0 commit comments