Skip to content

TF-1666 Update debug_agentql_script examples#36

Merged
frankfeng98 merged 7 commits intomainfrom
update_debug_agentql_script
Aug 14, 2024
Merged

TF-1666 Update debug_agentql_script examples#36
frankfeng98 merged 7 commits intomainfrom
update_debug_agentql_script

Conversation

@frankfeng98
Copy link
Copy Markdown
Contributor

This PR updates examples under debug_agentql_script folder. It updates both async and sync examples by changing to Smart Locators API and adjusting how context managers were created at the start of the script.

Copy link
Copy Markdown
Contributor

@nearestnabors nearestnabors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use https://scrapeme.live/shop for examples instead of google (no GDPR modal breaking the script) and search on "fish".

Also, what's this about? Is this example using smartLocator already?
image

@frankfeng98
Copy link
Copy Markdown
Contributor Author

Use https://scrapeme.live/shop for examples instead of google (no GDPR modal breaking the script) and search on "fish".

Also, what's this about? Is this example using smartLocator already? image

I don't think this example was using Smart Locator before this PR. But this line contains a buggy code that will crash the script (i.e. search is not a valid field in query). Maybe that's why it is giving the warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants