X Tutup
The Wayback Machine - https://web.archive.org/web/20200920001057/https://github.com/seleniumbase/SeleniumBase/releases
Skip to content
  • v1.49.15
  • 5e7013d
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.15
  • 5e7013d
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 18, 2020

Update console scripts for the page-objects generator

  • Update the console scripts tool for generating page objects
  • Also optimize colorama / speed up console scripts output
  • Also update the Python rich requirement to version 7.0.0

(See https://www.youtube.com/watch?v=Sjzq9kU5kOw to learn how the page-objects generator works)


Summary of the console scripts' tools for generating page objects:

  ** extract-objects **

  Usage:
           seleniumbase extract-objects [SELENIUMBASE_PYTHON_FILE]
           OR:    sbase extract-objects [SELENIUMBASE_PYTHON_FILE]
  Output:
           Creates page objects based on selectors found in a
           seleniumbase Python file and saves those objects to the
           "page_objects.py" file in the same folder as the tests.

  ** inject-objects **

  Usage:
           seleniumbase inject-objects [SELENIUMBASE_PYTHON_FILE]
           OR:    sbase inject-objects [SELENIUMBASE_PYTHON_FILE]
  Options:
           -c, --comments  (Add object selectors to the comments.)
                           (Default: No added comments.)
  Output:
           Takes the page objects found in the "page_objects.py"
           file and uses those to replace matching selectors in
           the selected seleniumbase Python file.

  ** objectify **

  Usage:
           seleniumbase objectify [SELENIUMBASE_PYTHON_FILE]
           OR:    sbase objectify [SELENIUMBASE_PYTHON_FILE]
  Options:
           -c, --comments  (Add object selectors to the comments.)
                           (Default: No added comments.)
  Output:
           A modified version of the file where the selectors
           have been replaced with variable names defined in
           "page_objects.py", supporting the Page Object Pattern.

           (seleniumbase "objectify" has the same outcome as
            combining "extract-objects" with "inject-objects")

  ** revert-objects **

  Usage:
           seleniumbase revert-objects [SELENIUMBASE_PYTHON_FILE]
           OR:    sbase revert-objects [SELENIUMBASE_PYTHON_FILE]
  Options:
           -c, --comments  (Keep existing comments for the lines.)
                           (Default: No comments are kept.)
  Output:
           Reverts the changes made by "seleniumbase objectify" or
           "seleniumbase inject-objects" when run against a
           seleniumbase Python file. Objects will get replaced by
           selectors stored in the "page_objects.py" file.
Assets 2
  • v1.49.14
  • 292786c
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.14
  • 292786c
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 17, 2020 · 8 commits to master since this release

Update i18n translations. Also update pygments.

  • Add "i18n" translations for self.assert_downloaded_file(file)
  • Update the pygments Python requirement to 2.7.1
Assets 2
  • v1.49.13
  • c904940
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.13
  • c904940
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 15, 2020 · 17 commits to master since this release

Improve file downloads - disable automation prompts

  • Prevent download prompts from appearing (On Chrome, Firefox, and Edge)
  • Update the default timeout for asserting downloaded files
  • Update the Python requirements
    -- coverage==5.3
    -- rich==6.2.0
Assets 2
  • v1.49.12
  • 17754cd
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.12
  • 17754cd
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 13, 2020 · 25 commits to master since this release

Update Python dependencies

  • pytest==6.0.2;python_version>="3.5"
  • pygments==2.7.0;python_version>="3.5"
Assets 2
  • v1.49.11
  • 46da62b
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.11
  • 46da62b
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 11, 2020 · 30 commits to master since this release

Update presentation metadata and more

  • Update metadata for generated presentations (Fixes mobile view)
  • Also verify URL has fully loaded before calling assert_title(TITLE)
  • Also update the rich requirement: rich==6.1.2
Assets 2
  • v1.49.10
  • 5055312
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.10
  • 5055312
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 10, 2020 · 42 commits to master since this release

Add expected methods

  • Add self.clear(SELECTOR)
  • Add self.set_text(SELECTOR, TEXT)
  • Update SeleniumBase translations
  • Also set the pymysql requirement to version 0.10.1

Reasoning for the duplicate methods:

  • Although most methods that type text already clear out the text field first, and although clearing out the text field can already be done with self.type(SELECTOR, ""), I'm adding the self.clear(SELECTOR) method to avoid confusion because developers will expect that method to exist.
  • Developers would also expect there to be a self.set_text(SELECTOR, TEXT) method (even though methods already exist that do the same thing) because there's a self.get_text(SELECTOR) method and a self.set_attribute(SELECTOR, ATTRIBUTE, VALUE) method, which sound similar.
Assets 2
  • v1.49.9
  • 18422d3
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.9
  • 18422d3
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 10, 2020 · 48 commits to master since this release

Update the display of console scripts

  • Make sure to initialize colorama before using it
  • Fix display incompatibilities on different platforms
Assets 2

@mdmintz mdmintz released this Sep 9, 2020 · 65 commits to master since this release

Updates to the css-to-xpath selector converter

"""
An implementation of :py:class:`cssselect.GenericTranslator` with
XPath output that more readily converts back to CSS selectors.
The simplified examples in https://devhints.io/xpath were used as a
reference here.
"""
Assets 2
  • v1.49.7
  • 0bf5179
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.7
  • 0bf5179
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 9, 2020 · 69 commits to master since this release

Another update to the xpath-to-css converter

  • Handle the case of // in the middle of an xpath selector

Example:

self.convert_xpath_to_css("//section//p/p//div")
'section p > p div'

See the xpath cheatsheet for more details: https://devhints.io/xpath

Assets 2
  • v1.49.6
  • 56cf4aa
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.49.6
  • 56cf4aa
  • Compare
    Choose a tag to compare
    Search for a tag

@mdmintz mdmintz released this Sep 9, 2020 · 72 commits to master since this release

Update the xpath-to-css selector converter

  • Handle special xpath edge cases that weren't covered by the main converter
Assets 2
You can’t perform that action at this time.
X Tutup