Skip to content

Commit

Permalink
Merge pull request #29 from kkinder/28-incorrectly-looking-for-id-the…
Browse files Browse the repository at this point in the history
…-function-in-kwargs

Fix id keyword check in core.py [fixes #28]
  • Loading branch information
kkinder authored Jul 28, 2024
2 parents af1bf48 + 20a8513 commit cd44188
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 cd44188

Please sign in to comment.