INNER CODE UNIT · Python

attempts

handrew/browserpilot · browserpilot/agents/gpt_selenium_agent.py:362

                attempts = attempts + 1
                action = action.replace("```", "")
                self._check_danger(action)
                try:
                    exec(action, globals(), ldict)
                    break
                except:
                    action = self.__handle_agent_exception(action)

        if self.instruction_output_file:
            self.instruction_compiler.save_compiled_instructions(
                self.instruction_output_file
            )

        self.__complete()

    def __switch_to_element_iframe(func):
        """Decorator function to switch to the iframe of the element."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…