Skip to content

Releases: seleniumbase/SeleniumBase

Refresh Python dependencies

16 Jun 02:30
b90c1e8
Compare
Choose a tag to compare

Refresh Python dependencies

  • setuptools>=47.3.0;python_version>="3.5"
  • rich==2.2.3;python_version>="3.6"
  • py==1.8.2
  • Remove livereload because it was only needed for docs

Massive Release with Lots of Changes

14 Jun 05:39
1dba6ee
Compare
Choose a tag to compare

Massive Release with Lots of Changes

  • Add the new "sbase mkfile FILE_NAME.py" command
  • Update the "sbase mkdir DIR_NAME" command
  • Update Messenger output for asserts (with translations)
  • Add "--rs" as a simplified CMD arg for "--reuse-session"
  • Boost speed by optimizing the location of imports
  • Default to using self.type() instead of self.update_text()
  • Simplify detection of Chinese, Japanese, and Korean chars
  • Add js_update_text(s, t) and js_type(s, t) to translations
  • Update SeleniumBase translations
  • Update the Translation API tool
  • Improve reliability of Demo Mode
  • Refresh the proxy example list
  • Update the smart-word-wrap function for Python scripts
  • Use consistent naming: Args called "new_value" become "text"
  • Remove deprecated methods from over a year ago
  • Improve methods that type text
  • Update the "rich" Python dependency to v2.0.1
  • Update the "flake8" Python dependency to v3.8.3

Add "sbase print [FILE]" with syntax-highlighting

08 Jun 03:12
0abcaf1
Compare
Choose a tag to compare

Update Console Scripts:

  • Add the seleniumbase print [FILE] command with syntax-highlighting
  • Add the -n option to include line Numbers in sbase translate -p files

Also Update Python dependencies:

  • rich==2.0.0
  • certifi>=2020.4.5.2
  • pytest==4.6.11;python_version<"3.5"
  • pytest==5.4.3;python_version>="3.5"

Add get_user_agent() and improve mobile compatibility

04 Jun 07:33
ec8ade9
Compare
Choose a tag to compare

Add get_user_agent() and improve mobile compatibility

  • Add the get_user_agent() method
  • Update translations
  • Improve mobile compatibility

Add the ability to create DriverJS website tours

03 Jun 03:58
a2d7ab3
Compare
Choose a tag to compare

Add the ability to create DriverJS website tours

  • Also add translations for associated methods

Also refresh existing Python dependencies:

  • pytest bumped up to v5.4.3
  • rich bumped up to v1.3.1

Improve exception-handling, and more

29 May 22:37
355fad6
Compare
Choose a tag to compare

Improve exception-handling, and more

  • Improve exception-handling by using Selenium's built-in exceptions
  • Improve error-handling around alerts during wait_for_ready_state_complete()
  • Improve smart-word-wrap when printing Translation API results
  • For the test time-limit feature, start the clock at the end of setUp()

Translations, Simplify Alert-handling, Deferred Asserts

28 May 07:57
9bc6e02
Compare
Choose a tag to compare

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)

New CMD interface, translations, fixes, and more

25 May 08:35
9d69b00
Compare
Choose a tag to compare

New console scripts interface, translations, fixes, and more

  • Add "sbase" as a shorter "seleniumbase" for console scripts
  • Update SeleniumBase translations
  • Fix issues with setting the time-limit in tests
  • Update file-handling for tests that use local files
  • Update URL detection mechanisms
  • Update the setuptools-scm dependency
  • Update examples

Add/update translations. Make get() more flexible.

24 May 07:05
7063374
Compare
Choose a tag to compare

Add/update translations. Make get() more flexible.

  • Add/update multiple translations for the Translation API
  • The SeleniumBase Translation API now includes all language translations from the seleniumbase/translate folder.
  • Make the self.get(url) method more flexible:
    def get(self, url):
        """ If url looks like a page URL, opens the URL in the web browser.
            Otherwise, returns self.get_element(URL_AS_A_SELECTOR)
            Examples:
                self.get("https://seleniumbase.io")  # Navigates to the URL
                self.get("input.class")  # Finds and returns the WebElement
        """
        if self.__looks_like_a_page_url(url):
            self.open(url)
        else:
            return self.get_element(url)  # url is treated like a selector
  • Update the flake8 Python dependency

Simplify error output and fix WebDriver issues

22 May 21:14
a854d75
Compare
Choose a tag to compare

Simplify error output and fix Remote WebDriver issues

  • Simplify error output when timeout exceptions occur
  • Fix issues with Remote WebDriver and Selenium Grid
  • Add "is_selected" to the SeleniumBase Translation API
  • Update Python dependencies