code: def test_rdps006_move_on_page(dash_duo):
      app = Dash(__name__)
      app.layout = html.Div(
          [
              html.Button("move table", id="move-table"),
              html.Div(id="container"),
          ]
      )
  
      @app.callback(
          Output("container", "children"),
          [Input("move-table", "n_clicks")],
      )
      def move_table(n):
          children = [html.Div("div 0", id="div0"), simple_table()]
          for i in range(1, (n or 0) + 1):
              children = [
                  html.Div("div {}".format(i), id="div{}".format(i)),
                  html.Div(children),
              ]
          return children
  
      def find_last_div(n):
          dash_duo.wait_for_text_to_equal(
              "#div{}".format(n), "div {}".format(n)
          )
          assert (
              len(dash_duo.find_elements("#div{}".format(n + 1))) == 0
          )
  
      dash_duo.start_server(app)
      find_last_div(0)
      check_table_names(dash_duo, ["a", "b"])
  
      rename_and_hide(dash_duo)
      check_table_names(dash_duo, [NEW_NAME])
  
      for i in range(1, 5):
          dash_duo.find_element("#move-table").click()
          find_last_div(i)
          check_table_names(dash_duo, [NEW_NAME])
  
imports: from multiprocessing import Value
  import pytest
  import time
  from selenium.webdriver.common.keys import Keys
  import dash
  from dash import Dash, Input, Output, State, MATCH, dcc, html, dash_table
  from dash_test_components import MyPersistedComponent
  from dash_test_components import MyPersistedComponentNested
label_desc: Use image node_id 12 for calling a global function with example usage: test_rdps006_move_on_page(dash_duo) and returns: children