Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def automation(page: Page, params: Params, **_kwargs):
page=page, button_locator=load_more_button, max_clicks=20
)
# Will keep clicking the button until the button disappears or is disabled or the max_clicks is reached.
elements = await page.locator("main main slot slot div").count()
elements = await page.locator("main main div div div").count()
return {
"number_of_elements": elements,
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def automation(page: Page, params: Params, **_kwargs):
max_scrolls=max_scrolls,
)
# Will keep scrolling until the page has loaded all content or the max_scrolls is reached.
elements = await page.locator("main slot slot slot div").count()
elements = await page.locator("main div div div div").count()

return {
"number_of_elements": elements,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function handler(
});

// Will keep clicking the button until the button disappears or is disabled or the max_clicks is reached.
const elements = await page.locator("main main slot slot div").count();
const elements = await page.locator("main main div div div").count();
return {
number_of_elements: elements,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async function handler(
});

// Will keep scrolling until the page has loaded all content or the max_scrolls is reached.
const elements = await page.locator("main slot slot slot div").count();
const elements = await page.locator("main div div div div").count();
return {
number_of_elements: elements,
};
Expand Down
Loading