Skip to content

Commit

Permalink
[py] fix inadvertent code change in mutation_event
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Nov 2, 2023
1 parent 6512071 commit e7d4e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def mutation_events(self) -> dict:
yield event

payload = json.loads(evnt.value.payload)
elements: list = self.driver.find_elements(By.CSS_SELECTOR, f"*[data-__webdriver_id={payload['target']}]")
elements: list = self.driver.find_elements(By.CSS_SELECTOR, f"*[data-__webdriver_id={payload['target']}")
if not elements:
elements.append(None)
event["element"] = elements[0]
Expand Down

0 comments on commit e7d4e26

Please sign in to comment.