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 b8c879e commit 92bb1b1Copy full SHA for 92bb1b1
1 file changed
examples/cdp_mode/playwright/raw_walmart_sync.py
@@ -26,7 +26,11 @@
26
item = items.nth(i)
27
if required_text in item.inner_text():
28
description = item.locator('[data-automation-id="product-title"]')
29
- if description and description.inner_text() not in unique_item:
+ if (
30
+ description
31
+ and description.is_visible()
32
+ and description.inner_text() not in unique_item
33
+ ):
34
unique_item.append(description.inner_text())
35
print("* " + description.inner_text())
36
price = item.locator('[data-automation-id="product-price"]')
0 commit comments