playwriter 0.0.33 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/aria-snapshot.d.ts +68 -0
  2. package/dist/aria-snapshot.d.ts.map +1 -0
  3. package/dist/aria-snapshot.js +359 -0
  4. package/dist/aria-snapshot.js.map +1 -0
  5. package/dist/cdp-relay.d.ts.map +1 -1
  6. package/dist/cdp-relay.js +95 -5
  7. package/dist/cdp-relay.js.map +1 -1
  8. package/dist/cdp-session.d.ts +24 -3
  9. package/dist/cdp-session.d.ts.map +1 -1
  10. package/dist/cdp-session.js +23 -0
  11. package/dist/cdp-session.js.map +1 -1
  12. package/dist/debugger-api.md +4 -3
  13. package/dist/debugger.d.ts +4 -3
  14. package/dist/debugger.d.ts.map +1 -1
  15. package/dist/debugger.js +3 -1
  16. package/dist/debugger.js.map +1 -1
  17. package/dist/editor-api.md +2 -2
  18. package/dist/editor.d.ts +2 -2
  19. package/dist/editor.d.ts.map +1 -1
  20. package/dist/editor.js +1 -0
  21. package/dist/editor.js.map +1 -1
  22. package/dist/index.d.ts +8 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +4 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/mcp.d.ts.map +1 -1
  27. package/dist/mcp.js +151 -14
  28. package/dist/mcp.js.map +1 -1
  29. package/dist/mcp.test.js +340 -5
  30. package/dist/mcp.test.js.map +1 -1
  31. package/dist/protocol.d.ts +12 -1
  32. package/dist/protocol.d.ts.map +1 -1
  33. package/dist/react-source.d.ts +3 -3
  34. package/dist/react-source.d.ts.map +1 -1
  35. package/dist/react-source.js +3 -1
  36. package/dist/react-source.js.map +1 -1
  37. package/dist/scoped-fs.d.ts +94 -0
  38. package/dist/scoped-fs.d.ts.map +1 -0
  39. package/dist/scoped-fs.js +356 -0
  40. package/dist/scoped-fs.js.map +1 -0
  41. package/dist/styles-api.md +3 -3
  42. package/dist/styles.d.ts +3 -3
  43. package/dist/styles.d.ts.map +1 -1
  44. package/dist/styles.js +3 -1
  45. package/dist/styles.js.map +1 -1
  46. package/package.json +13 -13
  47. package/src/aria-snapshot.ts +446 -0
  48. package/src/assets/aria-labels-github-snapshot.txt +605 -0
  49. package/src/assets/aria-labels-github.png +0 -0
  50. package/src/assets/aria-labels-google-snapshot.txt +110 -0
  51. package/src/assets/aria-labels-google.png +0 -0
  52. package/src/assets/aria-labels-hacker-news-snapshot.txt +1023 -0
  53. package/src/assets/aria-labels-hacker-news.png +0 -0
  54. package/src/cdp-relay.ts +103 -5
  55. package/src/cdp-session.ts +50 -3
  56. package/src/debugger.ts +6 -4
  57. package/src/editor.ts +4 -3
  58. package/src/index.ts +8 -0
  59. package/src/mcp.test.ts +424 -5
  60. package/src/mcp.ts +242 -66
  61. package/src/prompt.md +209 -167
  62. package/src/protocol.ts +14 -1
  63. package/src/react-source.ts +5 -3
  64. package/src/scoped-fs.ts +411 -0
  65. package/src/styles.ts +5 -3
@@ -0,0 +1,110 @@
1
+ - generic [ref=e1]:
2
+ - generic [ref=e2]:
3
+ - navigation [ref=e3]:
4
+ - generic [ref=e5]:
5
+ - generic [ref=e6]:
6
+ - link [ref=e8] [cursor=pointer]:
7
+ - /url: https://mail.google.com/mail/&ogbl
8
+ - text: Gmail
9
+ - link [ref=e10] [cursor=pointer]:
10
+ - /url: https://www.google.com/imghp?hl=en&ogbl
11
+ - text: Images
12
+ - button [ref=e13] [cursor=pointer]:
13
+ - img [ref=e14]
14
+ - link [ref=e18] [cursor=pointer]:
15
+ - /url: https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/&ec=futura_exp_og_so_72776762_e
16
+ - text: Sign in
17
+ - img [ref=e21]
18
+ - search [ref=e29]:
19
+ - generic [ref=e31]:
20
+ - generic [ref=e33]:
21
+ - img [ref=e37]
22
+ - combobox [ref=e40]
23
+ - generic [ref=e42]:
24
+ - button [ref=e43] [cursor=pointer]:
25
+ - img [ref=e44]
26
+ - button [ref=e46] [cursor=pointer]:
27
+ - img [ref=e47]
28
+ - generic [ref=e50]:
29
+ - button [ref=e51] [cursor=pointer]: Google Search
30
+ - button [ref=e52] [cursor=pointer]: I'm Feeling Lucky
31
+ - generic [ref=e55]:
32
+ - text: "Google offered in:"
33
+ - link [ref=e56] [cursor=pointer]:
34
+ - /url: https://www.google.com/setprefs?sig=0_BrPqcpi5Yw7nw8qkQeZlfefk7NQ%3D&hl=it&source=homepage&sa=X&ved=0ahUKEwj11bOl2u-RAxVbFjQIHS-hAAgQ2ZgBCBU
35
+ - text: Italiano
36
+ - contentinfo [ref=e58]:
37
+ - generic [ref=e59]: Italy
38
+ - generic [ref=e60]:
39
+ - generic [ref=e61]:
40
+ - link [ref=e62] [cursor=pointer]:
41
+ - /url: https://about.google/?utm_source=google-IT&utm_medium=referral&utm_campaign=hp-footer&fg=1
42
+ - text: About
43
+ - link [ref=e63] [cursor=pointer]:
44
+ - /url: https://www.google.com/intl/en_it/ads/?subid=ww-ww-et-g-awa-a-g_hpafoot1_1!o2&utm_source=google.com&utm_medium=referral&utm_campaign=google_hpafooter&fg=1
45
+ - text: Advertising
46
+ - link [ref=e64] [cursor=pointer]:
47
+ - /url: https://www.google.com/services/?subid=ww-ww-et-g-awa-a-g_hpbfoot1_1!o2&utm_source=google.com&utm_medium=referral&utm_campaign=google_hpbfooter&fg=1
48
+ - text: Business
49
+ - link [ref=e65] [cursor=pointer]:
50
+ - /url: https://google.com/search/howsearchworks/?fg=1
51
+ - text: How Search works
52
+ - generic [ref=e66]:
53
+ - link [ref=e67] [cursor=pointer]:
54
+ - /url: https://policies.google.com/privacy?hl=en-IT&fg=1
55
+ - text: Privacy
56
+ - link [ref=e68] [cursor=pointer]:
57
+ - /url: https://policies.google.com/terms?hl=en-IT&fg=1
58
+ - text: Terms
59
+ - button [ref=e72] [cursor=pointer]:
60
+ - generic [ref=e73]: Settings
61
+ - generic:
62
+ - dialog "Before you continue to Google Search":
63
+ - generic [ref=e80]:
64
+ - generic [ref=e82]:
65
+ - img "Google" [ref=e83]
66
+ - generic [ref=e84]:
67
+ - 'button "Language: ‪English‬" [active] [ref=e86] [cursor=pointer]':
68
+ - generic [ref=e87]:
69
+ - img
70
+ - generic [ref=e88]: en
71
+ - link "Sign in" [ref=e89] [cursor=pointer]
72
+ - generic [ref=e90]:
73
+ - heading "Before you continue to Google" [level=1] [ref=e91]
74
+ - generic [ref=e92]:
75
+ - text: A reminder that showing ads is the primary way that we fund our services. Learn more about our use of
76
+ - link "data for advertising" [ref=e93] [cursor=pointer]:
77
+ - /url: https://howwemakemoney.withgoogle.com/en?utm_source=ucbs
78
+ - text: .
79
+ - generic [ref=e94]:
80
+ - generic [ref=e95]:
81
+ - text: We use
82
+ - link "cookies" [ref=e96] [cursor=pointer]:
83
+ - /url: https://policies.google.com/technologies/cookies?utm_source=ucbs&hl=en-IT
84
+ - text: and data to
85
+ - list [ref=e97]:
86
+ - listitem [ref=e98]: Deliver and maintain Google services
87
+ - listitem [ref=e99]: Track outages and protect against spam, fraud and abuse
88
+ - listitem [ref=e100]: Measure audience engagement and site statistics to understand how our services are used and enhance the quality of those services
89
+ - generic [ref=e101]:
90
+ - text: If you choose to 'Accept all', we will also use cookies and data to
91
+ - list [ref=e102]:
92
+ - listitem [ref=e103]: Develop and improve new services
93
+ - listitem [ref=e104]: Deliver and measure the effectiveness of ads
94
+ - listitem [ref=e105]: Show personalised content, depending on your settings
95
+ - listitem [ref=e106]: Show personalised ads, depending on your settings
96
+ - generic [ref=e107]: If you choose to 'Reject all', we will not use cookies for these additional purposes.
97
+ - generic [ref=e108]: Non-personalised content is influenced by things like the content that you’re currently viewing, activity in your active Search session, and your location. Non-personalised ads are influenced by the content that you’re currently viewing and your general location. Personalised content and ads can also include more relevant results, recommendations and tailored ads based on past activity from this browser, like previous Google searches. We also use cookies and data to tailor the experience to be age-appropriate, if relevant.
98
+ - generic [ref=e109]: Select 'More options' to see additional information, including details about managing your privacy settings. You can also visit g.co/privacytools at any time.
99
+ - generic [ref=e110]:
100
+ - generic [ref=e111]:
101
+ - button "Reject all" [ref=e112] [cursor=pointer]
102
+ - button "Accept all" [ref=e113] [cursor=pointer]
103
+ - link "More options for personalisation settings and cookies" [ref=e115] [cursor=pointer]:
104
+ - generic "More options for personalisation settings and cookies" [ref=e116]: More options
105
+ - generic [ref=e117]:
106
+ - link "Privacy" [ref=e118] [cursor=pointer]:
107
+ - /url: https://policies.google.com/privacy?hl=en-IT&fg=1&utm_source=ucbs
108
+ - generic [ref=e119]: ·
109
+ - link "Terms" [ref=e120] [cursor=pointer]:
110
+ - /url: https://policies.google.com/terms?hl=en-IT&fg=1&utm_source=ucbs