original_docstring: Delete ClickHouse Operator and Installation from Altinity dashboard.
docstring: Delete ClickHouse Operator and Installation from Altinity dashboard.
docstring_tokens: Delete ClickHouse Operator and Installation from Altinity dashboard .
code: def delete_cho_remove_ch(self, timeout=15):
      """Delete ClickHouse Operator and Installation from Altinity dashboard."""
      driver: WebDriver = self.context.driver
      cho_tab="/html/body/div[1]/div/div/div/nav/ul/li[2]/a"
      ch_install="/html/body/div[1]/div/div/div/nav/ul/li[3]/a"
      chi_toggle_btn="/html/body/div[1]/div/main/section/table/tbody/tr[1]/td[7]/div"
      chi_toggle_delete="/html/body/div[1]/div/main/section/table/tbody/tr[1]/td[7]/div/ul/li[2]/button"
      chi_delete_confm_btn="/html/body/div[3]/div/div/div/footer/button[1]"
      cho_toggle_btn="/html/body/div[1]/div/main/section/table/tbody/tr[1]/td[6]/div"
      cho_toggle_delete="/html/body/div[1]/div/main/section/table/tbody/tr[1]/td[6]/div/ul/li[2]/button"
      cho_delete_confm_btn="/html/body/div[4]/div/div/div/footer/button[1]"
  
      with Given("Adash is visible in chrome"):
          with When("I click on `ClickHouse Installations` tab in the Adash"):
              wait_for_element_to_be_clickable(
              timeout=timeout, select_type=SelectBy.XPATH, element=ch_install
              )
  
              ch_installs = driver.find_element(
                  SelectBy.XPATH, ch_install
              )
              ch_installs.click()
  
          with And("I click toggle button to delete the ClickHouse Installation"):
              for attempt in retries(count=5, timeout=10, delay=2):
                  with attempt:            
                      wait_for_element_to_be_clickable(
                      timeout=10, select_type=SelectBy.XPATH, element=chi_toggle_btn
                      )         
  
              chi_toggle_btns = driver.find_element(
                  SelectBy.XPATH, chi_toggle_btn
              )
              chi_toggle_btns.click()
  
          with And("I click on `Delete` drop down"):
              wait_for_element_to_be_clickable(
              timeout=timeout, select_type=SelectBy.XPATH, element=chi_toggle_delete
              )         
  
              chi_toggle_deletes = driver.find_element(
                  SelectBy.XPATH, chi_toggle_delete
              )
              chi_toggle_deletes.click()
  
          with And("I click on `Delete` confirmation button"):
              wait_for_element_to_be_clickable(
              timeout=timeout, select_type=SelectBy.XPATH, element=chi_delete_confm_btn
              )   
  
              chi_delete_confm_btns = driver.find_element(
                  SelectBy.XPATH, chi_delete_confm_btn
              )
              chi_delete_confm_btns.click()
  
          with And("I wait until `ClickHouse Installation` terminates"):
              for attempt in retries(count=5, timeout=timeout, delay=2):
                  with attempt:
                      wait_for_element_to_be_invisible(
                      select_type=SelectBy.XPATH, element=chi_toggle_btn
                      )
  
          with When("I click on `ClickHouse Operator` tab in the Adash"):
              wait_for_element_to_be_clickable(
              timeout=timeout, select_type=SelectBy.XPATH, element=cho_tab
              )
  
              cho_tabs = driver.find_element(
                  SelectBy.XPATH, cho_tab
              )
              cho_tabs.click()
  
          with And("I click toggle button to delete the ClickHouse Operator"):
              for attempt in retries(count=5, timeout=timeout, delay=2):
                  with attempt:               
                      wait_for_element_to_be_clickable(
                      timeout=10, select_type=SelectBy.XPATH, element=cho_toggle_btn
                      )         
  
              cho_toggle_btns = driver.find_element(
                  SelectBy.XPATH, cho_toggle_btn
              )
              cho_toggle_btns.click()
  
          with And("I click on `Delete` drop down"):
              wait_for_element_to_be_clickable(
              timeout=timeout, select_type=SelectBy.XPATH, element=cho_toggle_delete
              )         
  
              cho_toggle_deletes = driver.find_element(
                  SelectBy.XPATH, cho_toggle_delete
              )
              cho_toggle_deletes.click()
  
          with And("I click on `Delete` confirmation button"):
              wait_for_element_to_be_clickable(
              timeout=timeout, select_type=SelectBy.XPATH, element=cho_delete_confm_btn
              )   
  
              cho_delete_confm_btns = driver.find_element(
                  SelectBy.XPATH, cho_delete_confm_btn
              )
              cho_delete_confm_btns.click()
  
          with And("I wait until `ClickHouse Operator` terminates"):
              for attempt in retries(count=5, timeout=timeout, delay=2):
                  with attempt:            
                      wait_for_element_to_be_invisible(
                      select_type=SelectBy.XPATH, element=cho_toggle_btn
                      )
code_tokens: def delete_cho_remove_ch ( self , timeout = 15 ) : driver : WebDriver = self . context . driver cho_tab = "/html/body/div[1]/div/div/div/nav/ul/li[2]/a" ch_install = "/html/body/div[1]/div/div/div/nav/ul/li[3]/a" chi_toggle_btn = "/html/body/div[1]/div/main/section/table/tbody/tr[1]/td[7]/div" chi_toggle_delete = "/html/body/div[1]/div/main/section/table/tbody/tr[1]/td[7]/div/ul/li[2]/button" chi_delete_confm_btn = "/html/body/div[3]/div/div/div/footer/button[1]" cho_toggle_btn = "/html/body/div[1]/div/main/section/table/tbody/tr[1]/td[6]/div" cho_toggle_delete = "/html/body/div[1]/div/main/section/table/tbody/tr[1]/td[6]/div/ul/li[2]/button" cho_delete_confm_btn = "/html/body/div[4]/div/div/div/footer/button[1]" with Given ( "Adash is visible in chrome" ) : with When ( "I click on `ClickHouse Installations` tab in the Adash" ) : wait_for_element_to_be_clickable ( timeout = timeout , select_type = SelectBy . XPATH , element = ch_install ) ch_installs = driver . find_element ( SelectBy . XPATH , ch_install ) ch_installs . click ( ) with And ( "I click toggle button to delete the ClickHouse Installation" ) : for attempt in retries ( count = 5 , timeout = 10 , delay = 2 ) : with attempt : wait_for_element_to_be_clickable ( timeout = 10 , select_type = SelectBy . XPATH , element = chi_toggle_btn ) chi_toggle_btns = driver . find_element ( SelectBy . XPATH , chi_toggle_btn ) chi_toggle_btns . click ( ) with And ( "I click on `Delete` drop down" ) : wait_for_element_to_be_clickable ( timeout = timeout , select_type = SelectBy . XPATH , element = chi_toggle_delete ) chi_toggle_deletes = driver . find_element ( SelectBy . XPATH , chi_toggle_delete ) chi_toggle_deletes . click ( ) with And ( "I click on `Delete` confirmation button" ) : wait_for_element_to_be_clickable ( timeout = timeout , select_type = SelectBy . XPATH , element = chi_delete_confm_btn ) chi_delete_confm_btns = driver . find_element ( SelectBy . XPATH , chi_delete_confm_btn ) chi_delete_confm_btns . click ( ) with And ( "I wait until `ClickHouse Installation` terminates" ) : for attempt in retries ( count = 5 , timeout = timeout , delay = 2 ) : with attempt : wait_for_element_to_be_invisible ( select_type = SelectBy . XPATH , element = chi_toggle_btn ) with When ( "I click on `ClickHouse Operator` tab in the Adash" ) : wait_for_element_to_be_clickable ( timeout = timeout , select_type = SelectBy . XPATH , element = cho_tab ) cho_tabs = driver . find_element ( SelectBy . XPATH , cho_tab ) cho_tabs . click ( ) with And ( "I click toggle button to delete the ClickHouse Operator" ) : for attempt in retries ( count = 5 , timeout = timeout , delay = 2 ) : with attempt : wait_for_element_to_be_clickable ( timeout = 10 , select_type = SelectBy . XPATH , element = cho_toggle_btn ) cho_toggle_btns = driver . find_element ( SelectBy . XPATH , cho_toggle_btn ) cho_toggle_btns . click ( ) with And ( "I click on `Delete` drop down" ) : wait_for_element_to_be_clickable ( timeout = timeout , select_type = SelectBy . XPATH , element = cho_toggle_delete ) cho_toggle_deletes = driver . find_element ( SelectBy . XPATH , cho_toggle_delete ) cho_toggle_deletes . click ( ) with And ( "I click on `Delete` confirmation button" ) : wait_for_element_to_be_clickable ( timeout = timeout , select_type = SelectBy . XPATH , element = cho_delete_confm_btn ) cho_delete_confm_btns = driver . find_element ( SelectBy . XPATH , cho_delete_confm_btn ) cho_delete_confm_btns . click ( ) with And ( "I wait until `ClickHouse Operator` terminates" ) : for attempt in retries ( count = 5 , timeout = timeout , delay = 2 ) : with attempt : wait_for_element_to_be_invisible ( select_type = SelectBy . XPATH , element = cho_toggle_btn )
short_docstring: Delete ClickHouse Operator and Installation from Altinity dashboard.
short_docstring_tokens: Delete ClickHouse Operator and Installation from Altinity dashboard .
comment: """Delete ClickHouse Operator and Installation from Altinity dashboard."""