class_docstr: Wrapper for performing figure-resampler GUI.
class_docstr_tok: ["Wrapper","for","performing","figure-resampler","GUI","."]
code: def click_legend_item(self, legend_name):
      WebDriverWait(self.driver, 3).until(
          EC.presence_of_element_located(
              (By.CLASS_NAME, "modebar-group")
          )
      )
      for legend_item in self.driver.find_elements(
          By.CLASS_NAME, "legendtext"
      ):
          if legend_name in legend_item.get_attribute(
              "data-unformatted"
          ):
              # move to the center of the item and click it
              (
                  ActionChains(self.driver)
                  .move_to_element(legend_item)
                  .pause(0.1)
                  .click()
                  .perform()
              )
              return
  
imports: from __future__ import annotations
  import json
  import time
  from typing import List, Union
  from selenium.webdriver.common.action_chains import ActionChains
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions
  from selenium.webdriver.support.ui import WebDriverWait
  from seleniumwire import webdriver
  from seleniumwire.request import Request
  from .utils import not_on_linux
label_desc: Use image node_id 9 for calling the FigureResamplerGUITests obj's underlying member method code with example usage: obj.click_legend_item(legend_name) without return types