argument_form.py 384 B

12345678910
  1. """Opens the argument form for the "Ping host" action."""
  2. from selenium.webdriver.common.by import By
  3. from selenium.webdriver.support.ui import WebDriverWait
  4. def run(driver):
  5. driver.find_element(By.CSS_SELECTOR, '[title="Ping host"]').click()
  6. WebDriverWait(driver, 15).until(
  7. lambda d: d.find_element(By.TAG_NAME, "body").get_attribute("loaded-argument-form")
  8. )