MCPcopy Create free account
hub / github.com/THUDM/AutoWebGLM / show_screenshot

Function show_screenshot

webarena/solver/utils.py:9–12  ·  view source on GitHub ↗
(state_info)

Source from the content-addressed store, hash-verified

7from browser_env import ActionTypes
8
9def show_screenshot(state_info):
10 image_data = state_info["observation"]["image"]
11 im = Image.fromarray(image_data)
12 im.save('output/show_screenshot.png')
13
14def get_nodes(dom_tree, nodes_info, attr, attrval, mode: int=0, use_elem: int=0):
15 tar_nodes, temp_nodes = [], []

Callers 1

step_onceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected