Skip to content

Commit

Permalink
Minor fixes (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
gasse authored Nov 27, 2024
1 parent 9b360a8 commit f21ede0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion browsergym/core/src/browsergym/core/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def override_property(task, env, property):
# create a new browser context for pages
self.context = self.browser.new_context(
no_viewport=True if self.resizeable_window else None,
viewport=viewport,
viewport=viewport if not self.resizeable_window else None,
record_video_dir=(
Path(self.record_video_dir) / "task_video" if self.record_video_dir else None
),
Expand Down
3 changes: 1 addition & 2 deletions browsergym/core/src/browsergym/core/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ class AbstractBrowserTask(ABC):
"""

@classmethod
@abstractmethod
def get_task_id(cls):
pass
raise NotImplementedError

def __init__(self, seed: int) -> None:
# initiate a random number generator
Expand Down

0 comments on commit f21ede0

Please sign in to comment.