Skip to content

Commit ffbfa02

Browse files
committed
[py] css data attributes that begin with a number need to use quotes
1 parent 1cfa0a0 commit ffbfa02

File tree

1 file changed

+1
-1
lines changed
  • py/selenium/webdriver/common

1 file changed

+1
-1
lines changed

py/selenium/webdriver/common/log.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async def mutation_events(self) -> AsyncGenerator[Dict[str, Any], None]:
9090
yield event
9191

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

0 commit comments

Comments
 (0)