You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 3, 2025. It is now read-only.
prompt="Navigate to news.ycombinator.com, find a post about AI, and summarize it"
53
53
):
54
54
print(chunk)
@@ -115,6 +115,52 @@ Step 4: Scrolling back up to view pricing tiers
115
115
Step 5: Provided concise summary of the three pricing tiers
116
116
```
117
117
118
+
### Running with a personal Chrome instance
119
+
120
+
You can use Index with personal Chrome browser instance instead of launching a new browser. Main advantage is that all existing logged in sessions will be available.
121
+
122
+
```bash
123
+
# Basic usage with default Chrome path
124
+
index run --local-chrome
125
+
126
+
# With custom Chrome path and debugging port
127
+
index run --local-chrome --chrome-path="/path/to/chrome" --port=9223
128
+
```
129
+
130
+
This will launch Chrome with remote debugging enabled and connect Index to it.
131
+
132
+
#### OS-specific Chrome paths
133
+
134
+
Default Chrome executable paths on different operating systems:
135
+
136
+
**macOS**:
137
+
```bash
138
+
index run --local-chrome --chrome-path="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
139
+
```
140
+
141
+
**Windows**:
142
+
```bash
143
+
index run --local-chrome --chrome-path="C:\Program Files\Google\Chrome\Application\chrome.exe"
144
+
```
145
+
146
+
#### Connecting to an already running Chrome instance
147
+
148
+
If you already have Chrome running with remote debugging enabled, you can connect to it:
- Interactable elements on the page are enclosed in uniquely colored bounding boxes with numbered labels.
14
-
- Match labels to their corresponding bounding boxes based on their color, as labels might slightly overlap with unrelated bounding boxes.
15
-
- Understand the position of the label relative to the bounding box. Label of the bounding box is placed in the inner top right corner of the bounding box. If the label is larger than the bounding box, the label is placed outside and tangent to the bounding box.
14
+
- Label corresponding to its bounding box is placed at the top right corner of the bounding box, and has exact same color as the bounding box. If the label is larger than the bounding box, the label is placed right outside and tangent to the bounding box.
15
+
- Carefully match labels to their corresponding bounding boxes based on the color and position of the label, as labels might slightly overlap with unrelated bounding boxes.
16
+
- If bounding box doesn't enclose any element, simply ignore it (most likely the bounding box was incorrectly detected).
16
17
- Screenshot enclosed in <current_state_clean_screenshot> tag contains clean screenshot of a current browser window.
17
18
- Screenshot enclosed in <current_state> tag has bounding boxes with labels drawn around interactable elements.
18
-
- Analyze both screenshots to understand the layout of the page and accurately map bounding boxes to their corresponding elements.
19
-
- Remember: each bounding box and corresponding label have the same unique color, so you can match them based on color.
20
-
- Successful and correct task completion depends on your correct assessment and understanding of the page.
19
+
- Carefully analyze both screenshots to understand the layout of the page and accurately map bounding boxes to their corresponding elements.
20
+
- Remember: each bounding box and corresponding label have the same unique color.
21
21
22
22
2. Element Interaction:
23
23
- Infer role and function of elements based on their appearance, text/icon inside the element, and location on the page.
0 commit comments