MCPcopy
hub / github.com/plotly/dash / rename_and_hide

Function rename_and_hide

tests/integration/renderer/test_persistence.py:68–77  ·  view source on GitHub ↗
(dash_duo, rename=0, new_name=NEW_NAME, hide=1)

Source from the content-addressed store, hash-verified

66
67
68def rename_and_hide(dash_duo, rename=0, new_name=NEW_NAME, hide=1):
69 dash_duo.find_element(
70 ".dash-header.column-{} .column-header--edit".format(rename)
71 ).click()
72 prompt = dash_duo.driver.switch_to.alert
73 prompt.send_keys(new_name)
74 prompt.accept()
75 dash_duo.find_element(
76 ".dash-header.column-{} .column-header--hide".format(hide)
77 ).click()
78
79
80def check_table_names(dash_duo, names, table_id="table"):

Calls 4

find_elementMethod · 0.80
send_keysMethod · 0.80
clickMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…