We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef3207 commit ab81f0dCopy full SHA for ab81f0d
pydoll/element.py
@@ -134,12 +134,9 @@ async def inner_html(self) -> str:
134
Returns:
135
str: The inner HTML of the element.
136
"""
137
- if self._search_method == By.XPATH:
138
- command = DomCommands.get_outer_html(
139
- object_id=self._node['objectId']
140
- )
141
- else:
142
- command = DomCommands.get_outer_html(self._node['nodeId'])
+ command = DomCommands.get_outer_html(
+ object_id=self._node['objectId']
+ )
143
response = await self._execute_command(command)
144
return response['result']['outerHTML']
145
0 commit comments