class_docstr: Wrapper for performing figure-resampler GUI.
class_docstr_tok: ["Wrapper","for","performing","figure-resampler","GUI","."]
docstr: Drags and zooms the div with the given classname.
  
  Parameters
  ----------
  div_classname : str
      The classname of the div to be dragged and zoomed.
  x0 : float, default: 0.5
      The relative x-coordinate of the upper left corner of the div.
  x1 : float, default: 0.5
      The relative x-coordinate of the lower right corner of the div.
  y0 : float, default: 0.5
      The relative y-coordinate of the upper left corner of the div.
  y1 : float, default: 0.5
      The relative y-coordinate of the lower right corner of the div.
docstr_tok: ["Drags","and","zooms","the","div","with","the","given","classname",".","Parameters","--","--","--","--","--","div_classname",":","str","The","classname","of","the","div","to","be","dragged","and","zoomed",".","x0",":","float",",","default",":","0.5","The","relative","x-coordinate","of","the","upper","left","corner","of","the","div",".","x1",":","float",",","default",":","0.5","The","relative","x-coordinate","of","the","lower","right","corner","of","the","div",".","y0",":","float",",","default",":","0.5","The","relative","y-coordinate","of","the","upper","left","corner","of","the","div",".","y1",":","float",",","default",":","0.5","The","relative","y-coordinate","of","the","lower","right","corner","of","the","div","."]
code: def drag_and_zoom(
      self, div_classname, x0=0.25, x1=0.5, y0=0.25, y1=0.5
  ):
      """
      Drags and zooms the div with the given classname.
  
      Parameters
      ----------
      div_classname : str
          The classname of the div to be dragged and zoomed.
      x0 : float, default: 0.5
          The relative x-coordinate of the upper left corner of the div.
      x1 : float, default: 0.5
          The relative x-coordinate of the lower right corner of the div.
      y0 : float, default: 0.5
          The relative y-coordinate of the upper left corner of the div.
      y1 : float, default: 0.5
          The relative y-coordinate of the lower right corner of the div.
  
      """
      if not self.on_page:
          self.go_to_page()
  
      WebDriverWait(self.driver, 3).until(
          EC.presence_of_element_located((By.CLASS_NAME, div_classname))
      )
  
      subplot = self.driver.find_element(By.CLASS_NAME, div_classname)
      size = subplot.size
      w, h = size["width"], size["height"]
  
      actions = ActionChains(self.driver)
      actions.move_to_element_with_offset(
          subplot, xoffset=w * x0, yoffset=h * y0
      )
      actions.click_and_hold()
      actions.pause(0.2)
      actions.move_by_offset(
          xoffset=w * (x1 - x0), yoffset=h * (y1 - y0)
      )
      actions.pause(0.2)
      actions.release()
      actions.pause(0.2)
      actions.perform()
  
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 5 for calling the FigureResamplerGUITests obj's underlying member method code with example usage: obj.drag_and_zoom(div_classname, x0, x1, y0, y1) without return types