Skip to content

Commit 23db80f

Browse files
authored
Merge pull request #1 from Ayyoubsghuri/ccr-f7e92cb5-spup13
Ccr f7e92cb5 spup13
2 parents abb96c6 + 4d9abe3 commit 23db80f

61 files changed

Lines changed: 4662 additions & 168 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build.yml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,28 @@ jobs:
1717
- run: pip install -r backend/requirements-dev.txt
1818
- run: cd backend && python -m pytest -q
1919
- run: cd frontend && npm ci && npm run lint && npm run build
20-
- run: cd desktop && npm ci && npm run check
20+
- run: cd desktop && npm ci && npm run check && npm run test:unit
2121
- name: End-to-end (record + replay in the real app)
2222
run: cd desktop && xvfb-run -a -s "-screen 0 1440x920x24" npm run test:e2e
2323

24+
firefox:
25+
# Playwright's Firefox build supports Ubuntu up to 24.04 (ubuntu-latest may be newer)
26+
runs-on: ubuntu-24.04
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-python@v5
30+
with: { python-version: "3.12" }
31+
- uses: actions/setup-node@v4
32+
with: { node-version: "22" }
33+
- run: pip install -r backend/requirements-dev.txt
34+
- run: cd frontend && npm ci && npm run build
35+
- name: End-to-end with the Firefox engine
36+
run: |
37+
cd desktop
38+
npm ci
39+
PLAYWRIGHT_BROWSERS_PATH=$RUNNER_TEMP/pw node node_modules/playwright-core/cli.js install --with-deps firefox
40+
AB_BROWSERS=$RUNNER_TEMP/pw xvfb-run -a -s "-screen 0 1440x920x24" npm run test:e2e:firefox
41+
2442
windows-exe:
2543
needs: test
2644
runs-on: windows-latest

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ jobs:
3838
3939
The executables are not code-signed yet, so Windows SmartScreen may warn on first launch: click **More info → Run anyway**.
4040
41-
Exact replays need nothing else. For "Build with AI", AI steps and AI assist, add an Anthropic API key in Settings.
41+
Exact replays need nothing else. For "Build with AI", AI steps and AI assist, add a Claude, OpenAI or NVIDIA API key (or a local model) in Settings. Private mode (on by default) lets the AI read page code but never page data.
4242
files: |
4343
desktop/release/*.exe

‎README.md‎

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,65 @@ Replay it exactly with no AI, or let Claude turn it into a smarter automation
4545

4646
Results (tables, text) are listed under **Runs** and can be exported as CSV or JSON.
4747

48+
### Getting details from every item of a list (record one, get all)
49+
The price, stock or anything else is often only on each item's own page. Record it **once**:
50+
51+
1. On the list page, **Pick table** on any item. That captures every item and its link.
52+
2. Click **one** item to open it, then **Pick text** on what you want (name the step, e.g. `price`).
53+
3. Stop, then on the click step press **"Repeat the next steps for every item"**.
54+
55+
AutoBrowser opens every item: by its link, or by clicking its row on the list page when there is no link.
56+
It runs your steps there and returns one table (`products_details`) with each item's list columns plus the values
57+
you picked. Items that fail get `_status: failed` and the run carries on. **Undo** on the loop turns it back into the
58+
original steps. "Build with AI" can also produce this loop from a goal like *"price of every product, all pages"*.
59+
60+
### Filling websites from Excel, CSV or PDFs
61+
1. **Data** (spreadsheet icon) → **Import** an `.xlsx`, `.xls` or `.csv` (pick the sheet and header row), or several **PDFs**:
62+
each PDF becomes one row. Fields come from fillable PDF form fields, or from rules you set: *after label*
63+
("File number") or a regex. **Suggest rules** asks the AI; in private mode it only sees the labels shared by all
64+
your PDFs. Everything else stays local.
65+
2. **Recorder** → *Data* → choose the file. Record one entry by hand using row 1. Values you type that match the row
66+
become `{{row.Column}}` automatically, and you can also pick a column on any step. Checkboxes are recorded as
67+
**set on / off** steps and can follow a column (yes / x / 1 / true / oui = ticked).
68+
3. Steps before **"Repeats for each data row from here"** (e.g. logging in) run once; the rest run for every row.
69+
Move the marker with ↻ on a step.
70+
4. **Flows → your flow → Data**: **link another file** by a shared column (like VLOOKUP), so a second Excel adds
71+
columns to the first. You can also filter rows (e.g. only where *Status* is empty), set a start row or maximum, and
72+
choose whether to stop at the first error.
73+
5. **Run**: progress shows per row. Under **Runs** → **Excel**, you get your rows back with `_status`, `_message` and
74+
any values extracted per row (e.g. the confirmation number the site showed).
75+
76+
### Formatting values
77+
Add a filter after any value: `{{row.Date | date:DD/MM/YYYY}}`, `{{row.Name | upper}}`, `{{row.Phone | digits}}`,
78+
`{{row.Amount | number:2}}`, `{{row.City | default:"Rabat"}}`. Step cards have a **ƒ format…** menu and show a live
79+
preview for the current row. Filters: `upper lower title trim digits nospace first last slice:a:b replace:"x":"y"
80+
split:" ":1 pad:6 prefix:"+" suffix:"" default:"-" number:2 yesno:Oui:Non date:<format> parsedate:<input format>`.
81+
Excel date numbers and day-first dates (31/12/2024) are understood.
82+
83+
### When a person is needed
84+
- **Pause for me** step (Recorder → *Add "pause for me" step*): the run stops with your message, the tab comes to
85+
the front, the taskbar flashes and Windows shows a notification. Then choose **Continue**, **Skip this row**
86+
or **Stop**. Tick *only when a CAPTCHA is on the page* to pause only when needed.
87+
- If a step fails while a **CAPTCHA** is visible (reCAPTCHA, hCaptcha, Cloudflare…), the run pauses by itself,
88+
and after you solve it and press Continue, the step is tried again.
89+
90+
### Results back into your file
91+
After a data run, **Runs → Your file + results** saves your original Excel (formatting kept) or CSV with
92+
`AutoBrowser status`, `AutoBrowser message` and anything picked up per row (e.g. the reference number). The
93+
save dialog starts at the file's original location. **Re-run N failed** repeats only the rows that failed or were
94+
skipped. Statuses are also kept in the data source, so the flow option **skip rows already done** works across runs.
95+
96+
### Pop-ups, uploads and downloads
97+
- Windows and tabs opened by the site (payment, confirmation, print pages) are followed by recordings and
98+
runs, and they return to the original page when the pop-up closes. The link between the two pages is kept,
99+
so sites that talk to their pop-ups keep working.
100+
- **Upload:** choosing a file in a site's file field is recorded as an upload step. Set a full path, choose files
101+
with 📂, or use a column. PDF data sources provide `{{row.file_path}}`, so each row can upload its own PDF. No
102+
file dialog opens during runs.
103+
- **Download:** a click that downloads a file is recorded as a download step. Name the file per row, e.g.
104+
`receipt_{{row.Case ID}}` (the site's extension is kept). Files go to `Downloads\AutoBrowser\<flow name>` or a
105+
folder you choose, and the saved path is added to the row's results.
106+
48107
### AI providers
49108
Pick one in **Settings → AI**; each keeps its own encrypted key and model:
50109

@@ -56,9 +115,39 @@ Pick one in **Settings → AI**; each keeps its own encrypted key and model:
56115

57116
You can type any model id your account can use.
58117

118+
### Private mode (on by default): the AI reads the code, never the data
119+
For government, banking, health or any personal data. With **Settings → Private mode** on:
120+
121+
- While recording, each page is saved as a **code outline**: HTML structure, ids, classes, field names,
122+
labels, column headers and button captions. Every data value is masked by its shape:
123+
`John Smith 2024-05-01` → `Xxxx Xxxxx 9999-99-99`, `$1,250.00` → `$9,999.99`. Long lists collapse to
124+
"… 47 more rows like the ones above".
125+
- **Build with AI** sends only that outline and your steps with values masked, URL parameters
126+
removed (`?id=…`) and text-based selectors dropped. The AI builds loops, pagination and extraction from the
127+
structure; the real selectors and values are **put back on your computer** after it answers.
128+
- **During runs**, AI steps get the masked outline instead of the page text, **no screenshots**, and
129+
`{{row.x}}` placeholders instead of real row values (filled in locally when typing).
130+
- **Preview what the AI will see** on the Build with AI screen shows the exact text that would be sent.
131+
- Passwords and 2FA codes are never sent in any mode. Your own goal text is sent as written, so don't paste data into it.
132+
133+
For zero data leaving the machine at all, combine private mode with a local model (OpenAI provider +
134+
`http://localhost:11434/v1` for Ollama), or skip AI and run flows in **Exact** mode.
135+
59136
### Templates you can use in values
60137
`{{account.username}}` `{{account.password}}` `{{account.totp}}` `{{today}}` `{{now}}` `{{row.<column>}}` (inside a row loop) `{{vars.<name>}}` (results of earlier extract steps)
61138

139+
## Browser engine: built-in Chromium or Firefox
140+
141+
AutoBrowser's own tabs are Chromium (Electron can only embed Chromium). You can also use **Firefox**:
142+
143+
- **Settings → Browser engine → Install Firefox engine** downloads Playwright's Firefox build (~95 MB) once.
144+
- Pick Firefox as the **default** for new tabs, or per account (**Accounts → Browser**). Each Firefox account keeps
145+
its own profile, logins and cookies.
146+
- Firefox opens in **its own window** next to AutoBrowser. The tab bar shows it with an `FF` badge, and
147+
**Show Firefox window** brings it forward. Recording, Pick table/text, runs, Excel/PDF data, AI steps and private mode
148+
all work the same as with the built-in browser.
149+
- Sites see a normal Firefox: real Firefox user agent and `navigator.webdriver === false`.
150+
62151
## Staying under the radar
63152

64153
What AutoBrowser does so sites see an ordinary Chrome:

0 commit comments

Comments
 (0)