This repo is a Python project that leverages the Selenium library to record and replay actions performed in the browser. The main script captures click and typing events in the browser, saving them to a local file named actions.json
, enabling the automated execution of these actions at a later time.
- Python: The primary language for automating actions in the browser.
- Selenium: Library used for automated interaction with the browser.
- JavaScript: Used to capture click and typing events in the browser.
-
Action Recording: The script captures click and typing events in the browser, saving them in JSON format in the
actions.json
file. -
Automated Playback: Allows for routine execution of recorded actions, facilitating the automation of repetitive tasks.
- Click Event Capture: Utilizes click events to identify the target element and records the action in the
actions.json
file. - Typing Event Capture: Records user typing, including the target element and the typed value.
- Element Localization: The
getPathTo(element)
method is used to obtain the XPath path of the target element in the browser.
- Clone the repository to your local machine.
- Install the necessary dependencies, including Selenium.
- Run the main Python script to start recording actions.
- The actions will be saved in the
actions.json
file. - To replay the actions, use the recorded file with the automated script.