def play_tour(self, name=None, interval=<NUM_LIT:0>):
if self.headless:<EOL><INDENT>return  <EOL><DEDENT>if not name:<EOL><INDENT>name = "<STR_LIT:default>"<EOL><DEDENT>if name not in self._tour_steps:<EOL><INDENT>raise Exception("<STR_LIT>" % name)<EOL><DEDENT>if "<STR_LIT>" in self._tour_steps[name][<NUM_LIT:0>]:<EOL><INDENT>tour_helper.play_bootstrap_tour(<EOL>self.driver, self._tour_steps, self.browser,<EOL>self.message_duration, name=name, interval=interval)<EOL><DEDENT>elif "<STR_LIT>" in self._tour_steps[name][<NUM_LIT:0>]:<EOL><INDENT>tour_helper.play_hopscotch_tour(<EOL>self.driver, self._tour_steps, self.browser,<EOL>self.message_duration, name=name, interval=interval)<EOL><DEDENT>elif "<STR_LIT>" in self._tour_steps[name][<NUM_LIT:0>]:<EOL><INDENT>tour_helper.play_introjs_tour(<EOL>self.driver, self._tour_steps, self.browser,<EOL>self.message_duration, name=name, interval=interval)<EOL><DEDENT>else:<EOL><INDENT>tour_helper.play_shepherd_tour(<EOL>self.driver, self._tour_steps,<EOL>self.message_duration, name=name, interval=interval)<EOL><DEDENT>
Plays a tour on the current website.
            @Params
            name - If creating multiple tours at the same time,
                   use this to select the tour you wish to add steps to.
            interval - The delay time between autoplaying tour steps.
                       If set to 0 (default), the tour is fully manual control.