<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
------<br>
from selenium import webdriver<br></div></blockquote><div> from time import sleep <br></div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
browser = webdriver.Firefox()<br>
browser.set_window_size(1600, 1200)<br>
browser.get("file:///path/to/<u></u>slides.html")<br>
<br>
for i in range(40):<br>
browser.save_screenshot("<u></u>frame%02d.png" % i)<br>
section = browser.find_element_by_tag_<u></u>name("section")<br>
section.send_keys(" ")<br></div></blockquote><div> sleep(2) <br></div><div>Add a 2 second sleep here to avoid collision between slides<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
browser.quit()<br>
------<br></div></blockquote><br></div><br></div></div>