Skip to content

Commit

Permalink
Fix id keyword check in core.py [fixes #28]
Browse files Browse the repository at this point in the history
Changed the id keyword check to a string for correct dictionary key referencing. This ensures that the element ID assignment works as expected when passed in kwargs.
  • Loading branch information
kkinder committed Jul 28, 2024
1 parent af1bf48 commit 20a8513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puepy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(
else:
raise Exception("No page passed")

if id in kwargs:
if "id" in kwargs:
self._element_id = kwargs["id"]
elif self._page and self._page.application:
self._element_id = self._page.application.element_id_generator.get_id_for_element(self)
Expand Down

0 comments on commit 20a8513

Please sign in to comment.