Last active
February 10, 2026 05:16
-
-
Save up1/904817166b650b714caef9846751178c to your computer and use it in GitHub Desktop.
Agent Browser from Vercel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ติดตั้ง ต้องใช้งานผ่าน NodeJS | |
| $npm install -g agent-browser | |
| // เปิด web | |
| $agent-browser open https://seleniumbase.io/coffee/ | |
| ✓ Coffee Cart | |
| https://seleniumbase.io/coffee/ | |
| // ทำการดูว่าทั้ง page มี element อะไรบ้าง | |
| $agent-browser snapshot | |
| - document: | |
| - list: | |
| - listitem: | |
| - link "Menu page" [ref=e1]: | |
| - /url: /coffee/ | |
| - text: menu | |
| - listitem: | |
| - link "Cart page" [ref=e2]: | |
| - /url: /coffee/cart | |
| - text: cart (0) | |
| - listitem: | |
| - link "GitHub page" [ref=e3]: | |
| - /url: /coffee/github | |
| - text: github | |
| - list: | |
| - listitem: | |
| - heading "Espresso $10.00" [ref=e4] [level=4] | |
| - text: espresso | |
| - listitem: | |
| - heading "Espresso Macchiato $12.00" [ref=e5] [level=4] | |
| - text: espresso milk foam | |
| - listitem: | |
| - heading "Cappuccino $19.00" [ref=e6] [level=4] | |
| - text: espresso steamed milk milk foam | |
| - listitem: | |
| - heading "Mocha $8.00" [ref=e7] [level=4] | |
| - text: espresso chocolate syrup steamed milk whipped cream | |
| - listitem: | |
| - heading "Flat White $18.00" [ref=e8] [level=4] | |
| - text: espresso steamed milk | |
| - listitem: | |
| - heading "Americano $7.00" [ref=e9] [level=4] | |
| - text: espresso water | |
| - listitem: | |
| - heading "Cafe Latte $16.00" [ref=e10] [level=4] | |
| - text: espresso steamed milk milk foam | |
| - listitem: | |
| - heading "Espresso Con Panna $14.00" [ref=e11] [level=4] | |
| - text: espresso whipped cream | |
| - listitem: | |
| - heading "Cafe Breve $15.00" [ref=e12] [level=4] | |
| - text: espresso steamed milk steamed cream milk foam | |
| - button "Proceed to checkout" [ref=e13]: "Total: $0.00" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment