-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Integration of AI #3403
-
I've been tinkering with dendrite which is similar to seleniumbase in some degrees but has Ai logic to find elements and take actions on the page for scraping and automation. I am wondering if there's any potential interest for some Ai to be integrated into seleniumbase in the future?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments
-
SeleniumBase already has various AI for code generation.
I demoed it in this video: https://www.youtube.com/watch?v=Mr90iQmNsKM
You can use The Recorder to instantly generate scripts from manual actions.
You can call assert_no_404_errors()
to instantly find all the broken links on a page:
You can use other SeleniumBase tools for:
- Generating page objects.
- Translating scripts into multiple spoken languages.
- Converting Python scripts into BDD tests.
- Bypassing CAPTCHAs and evading bot-detection.
You also have the Stealth Recorder: sbase recorder --uc
Lots of A.I. already included with SeleniumBase.
Beta Was this translation helpful? Give feedback.
All reactions
-
Rewriting this because somehow I didn't send it before.
What I mean by AI is the ability to use your own AI account like openai or anthropic to prompt it for elements/actions.
Dendrite example:
`
browser = Dendrite(auth=["instagram.com"])
browser.goto(
"https://www.instagram.com/direct/inbox/",
expected_page="Instagram DM inbox"
)
browser.click("Conversation at the top of the the sidebar")
posts = browser.ask(
"Extract the posts sent to me in this conversation",
type_spec: Posts
)
print(posts.items)
`
So in this example the user doesn't need to know the exact elements selector or even multiple steps.
"Conversation at the top of the the sidebar"
"Extract the posts sent to me in this conversation"
The user just tells dendrite what to do and it will find it and do it. It's rather useful and I think a powerful addition to seleniumbase.
Beta Was this translation helpful? Give feedback.