Skip to content

Commit

Permalink
Bump libwebarena / libvisualwebarena dependencies (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
gasse authored Nov 15, 2024
1 parent c1bd258 commit 5c55df2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion browsergym/visualwebarena/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
browsergym-core==0.13.0
browsergym-webarena
libvisualwebarena==0.0.14
libvisualwebarena==0.0.15
requests
torch
2 changes: 1 addition & 1 deletion browsergym/webarena/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
browsergym-core==0.13.0
libwebarena==0.0.3
libwebarena==0.0.4
2 changes: 1 addition & 1 deletion tests/core/test_actions_highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def test_invalid_action():
obs, reward, term, trunc, info = env.step(action)

# error
assert obs["last_action_error"] == "Error: modifiers: expected array, got string"
assert obs["last_action_error"] == "Error: Locator.click: modifiers: expected array, got string"

# invalid action args (not enough)
action = f"""\
Expand Down
2 changes: 1 addition & 1 deletion tests/core/test_observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def test_dom_has_bids_no_aria(url):

# exceptions
dom_node_names_without_bid = ["html", "#text", "#document", "#comment"]
axtree_roles_without_bid = ["RootWebArea", "none", "generic", "StaticText"]
axtree_roles_without_bid = ["RootWebArea", "none", "generic", "StaticText", "InlineTextBox"]

# 1. test the DOM snapshot for BID_ATTR, "aria-description" and "aria-roledescription"

Expand Down
8 changes: 4 additions & 4 deletions tests/core/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from browsergym.core.task import AbstractBrowserTask


class TestTask(AbstractBrowserTask):
class RegistrationTestTask(AbstractBrowserTask):
@classmethod
def get_task_id(cls):
raise NotImplementedError
Expand All @@ -28,10 +28,10 @@ def validate(self, page, chat_messages):
return 0, True, "", {}


register_task("test_task", TestTask)
register_task("test_task", RegistrationTestTask)
register_task(
"test_task_with_defaults",
TestTask,
RegistrationTestTask,
task_kwargs={"a": "new value"},
default_task_kwargs={"b": 1},
)
Expand All @@ -42,7 +42,7 @@ def test_registration():
with pytest.raises(ValueError):
register_task(
"test_task_forbidden",
TestTask,
RegistrationTestTask,
task_kwargs={"a": "new value"},
default_task_kwargs={"a": "other value"},
)
Expand Down

0 comments on commit 5c55df2

Please sign in to comment.