Skip to content

Commit 0c95b48

Browse files
authored
Merge pull request #10 from seratch/tweaks
Resolve two minor issues
2 parents 26e0146 + 57a58b8 commit 0c95b48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Get started building a [Computer Using Agent (CUA)](https://platform.openai.com/
1010
Set up python env and install dependencies.
1111

1212
```shell
13-
python3 -m venv env
14-
source env/bin/activate
13+
python3 -m venv .venv
14+
source .venv/bin/activate
1515
pip install -r requirements.txt
1616
```
1717

computers/base_playwright.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ def get_current_url(self) -> str:
136136
# --- Extra browser-oriented actions ---
137137
def goto(self, url: str) -> None:
138138
try:
139-
self._page.goto(url)
139+
return self._page.goto(url)
140140
except Exception as e:
141141
print(f"Error navigating to {url}: {e}")
142142

143143
def back(self) -> None:
144-
self._page.go_back()
144+
return self._page.go_back()
145145

146146
def forward(self) -> None:
147-
self._page.go_forward()
147+
return self._page.go_forward()
148148

149149
# --- Subclass hook ---
150150
def _get_browser_and_page(self) -> tuple[Browser, Page]:

0 commit comments

Comments
 (0)