github seleniumbase/SeleniumBase v1.42.0
SeleniumBase Presenter is out of beta!

latest releases: v4.32.11, v4.32.10, v4.32.9...
4 years ago

SeleniumBase Presenter is out of beta!

  • Official release of SeleniumBase Presenter: Create HTML presentations with Python


self.create_presentation(name=None, theme="serif", show_notes=True)
""" Creates a Reveal-JS presentation that you can add slides to.
    @Params
    name - If creating multiple presentations at the same time,
           use this to specify the name of the current presentation.
    theme - Set a theme with a unique style for the presentation.
            Valid themes: "serif" (default), "sky", "white", "black",
                          "simple", "league", "moon", "night",
                          "beige", "blood", and "solarized".
    show_notes - When set to True, the Notes feature becomes enabled,
                 which allows presenters to see notes next to slides.
"""
self.add_slide(content=None, image=None, code=None, iframe=None,
               content2=None, notes=None, name=None)
""" Allows the user to add slides to a presentation.
    @Params
    content - The HTML content to display on the presentation slide.
    image - Attach an image (from a URL link) to the slide.
    code - Attach code of any programming language to the slide.
           Language-detection will be used to add syntax formatting.
    iframe - Attach an iFrame (from a URL link) to the slide.
    content2 - HTML content to display after adding an image or code.
    notes - Additional notes to include with the slide.
            ONLY SEEN if show_notes is set for the presentation.
    name - If creating multiple presentations at the same time,
           use this to select the presentation to add slides to.
"""
self.begin_presentation(filename="my_presentation.html", interval=0)
""" Begin a Reveal-JS Presentation in the web browser.
    @Params
    name - If creating multiple presentations at the same time,
           use this to select the one you wish to add slides to.
    filename - The name of the HTML file that you wish to
               save the presentation to. (filename must end in ".html")
    interval - The delay time between autoplaying slides. (in seconds)
               If set to 0 (default), autoplay is disabled.
"""

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.