def METHOD_NAME(browser, pg_lock, registered_agent, ui_url):
    browser.get(ui_url)  # Goto home
    browser.select("a.instance-link").click()  # Click first instance
    browser.select("div.sidebar a.activity").click()  # Click Activity
    browser.select('td.query')  # Wait for queries to appears.
    for attempt in retry_fast():  # Wait for waiting count to come up
        with attempt:
            assert "1" == browser.select("#waiting-count").text
    browser.select(".nav-tabs a.waiting").click()  # Go to waiting tab
    # Pause auto-refresh
    browser.select("td input[type=checkbox]").click()
    # Ensure auto_refresh button is shown
    auto_refresh_resume = browser.select("span#autoRefreshResume")
    assert 'd-none' not in auto_refresh_resume.get_attribute('class')
    td = browser.select('td.query')
    assert 'UPDATE locked_table' in td.text
    assert "1" == browser.select("#blocking-count").text
    browser.select(".nav-tabs a.blocking").click()  # Go to blocking tab
    # Pause auto-refresh
    browser.select("td input[type=checkbox]").click()
    # Ensure auto_refresh button is shown
    auto_refresh_resume = browser.select("span#autoRefreshResume")
    assert 'd-none' not in auto_refresh_resume.get_attribute('class')
    td = browser.select('td.query')
    assert 'LOCK TABLE locked_table' in td.text