Skip to content

Translations, Simplify Alert-handling, Deferred Asserts

Compare
Choose a tag to compare
@mdmintz mdmintz released this 28 May 07:57
· 5577 commits to master since this release
9bc6e02

Add/Update Translations, Simplify Alert-handling, Deferred Asserts

  • Add and Update translations
  • Simplify code for handling alerts
  • Add the Deferred Assertions feature with rebranding
  • Update the translator
  • Update Python dependencies

Alert-handling methods: (Older names remain for backwards compatibility)

self.accept_alert(timeout=None)
# Duplicates: self.wait_for_and_accept_alert(timeout=None)

self.dismiss_alert(timeout=None)
# Duplicates: self.wait_for_and_dismiss_alert(timeout=None)

self.switch_to_alert(timeout=None)
# Duplicates: self.wait_for_and_switch_to_alert(timeout=None)

Deferred Assertion methods: (Older names remain for backwards compatibility)

self.deferred_assert_element(selector, by=By.CSS_SELECTOR, timeout=None)
# Duplicates: self.delayed_assert_element(selector, by=By.CSS_SELECTOR, timeout=None)

self.deferred_assert_text(text, selector="html", by=By.CSS_SELECTOR, timeout=None)
# Duplicates: self.delayed_assert_text(text, selector="html", by=By.CSS_SELECTOR, timeout=None)

self.process_deferred_asserts(print_only=False)
# Duplicates: self.process_delayed_asserts(print_only=False)