Skip to content

SeleniumBase Presenter is out of beta! #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 29, 2020
Merged

SeleniumBase Presenter is out of beta! #603

merged 7 commits into from
Jun 29, 2020

Conversation

mdmintz
Copy link
Member

@mdmintz mdmintz commented Jun 29, 2020

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.
"""

@mdmintz mdmintz merged commit a4455f4 into master Jun 29, 2020
@mdmintz mdmintz deleted the update-presenter branch June 29, 2020 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant