Skip to content

Commit

Permalink
feat: update text content extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
adeprez committed Oct 4, 2024
1 parent f1ea68f commit f3b2d87
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def value(self) -> Optional[str]:

@property
def text(self) -> str:
return self.element.text
return self.driver.execute_script(
"return arguments[0].textContent", self.element
)

@property
def outer_html(self) -> str:
Expand Down

0 comments on commit f3b2d87

Please sign in to comment.