Skip to content

Commit 2042323

Browse files
committed
fix: use innerHTML to retrieve shadow root HTML
1 parent e15cb6b commit 2042323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lavague-sdk/lavague/sdk/base_driver/javascript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def js_wrap_function_call(fn: str):
226226
const results = {};
227227
function traverse(node, xpath) {
228228
if (node.shadowRoot) {
229-
results[xpath] = node.shadowRoot.getHTML();
229+
results[xpath] = node.shadowRoot.innerHTML;
230230
}
231231
const countByTag = {};
232232
for (let child = node.firstChild; child; child = child.nextSibling) {

0 commit comments

Comments
 (0)