fix scraping issue (#3035)
This commit is contained in:
@@ -648,6 +648,12 @@ async def add_frame_interactable_elements(
|
|||||||
if not await frame_element.is_visible():
|
if not await frame_element.is_visible():
|
||||||
return elements, element_tree
|
return elements, element_tree
|
||||||
unique_id = await frame_element.get_attribute("unique_id")
|
unique_id = await frame_element.get_attribute("unique_id")
|
||||||
|
if not unique_id:
|
||||||
|
LOG.info(
|
||||||
|
"No unique_id found for frame, skipping",
|
||||||
|
frame_index=frame_index,
|
||||||
|
)
|
||||||
|
return elements, element_tree
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.warning(
|
LOG.warning(
|
||||||
"Unable to get unique_id from frame_element",
|
"Unable to get unique_id from frame_element",
|
||||||
|
|||||||
Reference in New Issue
Block a user