Welcome to the Automatic Bot Application! This project is a GUI application built with PySide6 that automates browser interactions using Selenium. It lets you input application names, browser links, and XPaths to perform automated actions like clicking and typing on web elements.
- User-Friendly Interface: Built with PySide6, providing an intuitive interface.
- Browser Automation: Uses Selenium to automate browser actions.
- Dynamic Input Handling: Accepts user inputs for application names, browser links, and XPaths.
- Output Logging: Saves automation scripts and logs to a Python file (
text_output_pyside6.py
). - Customizable Actions: Supports both "Click" and "Write" actions.
-
Setup:
- The application initializes a GUI with input fields and buttons.
- Users can input the application name, browser link, and XPaths for automation.
-
Input Handling:
- The
lineeditApp
field for application name. - The
lineeditLink
field for browser link. - The
lineeditInput
field for XPaths.
- The
-
Automation:
- Toggle between "Click" and "Write" modes.
- Generates Selenium-based Python scripts for the specified actions.
-
Output:
- Generated scripts are saved to
text_output_pyside6.py
. - Option to open the output file directly from the application.
- Generated scripts are saved to
- Python 3.8 or higher
- Required Python libraries:
PySide6
selenium
pystyle
undetected_chromedriver
- Google Chrome installed
-
Clone the repository:
git clone https://github.com/arien007/Selenium_Framework.git cd Selenium_Framework
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python main.py
-
Input Application Name:
- Enter the name of your application in the "Name" field.
-
Input Browser Link:
- Enter the URL of the website you want to automate in the "Browser" field.
-
Add XPaths:
- Enter the XPath of the web element in the "Add" field.
- Choose between "Click" or "Write" modes to specify the action.
-
Generate Script:
- Click the "Ready" button to generate the automation script.
- The script will be saved to
text_output_pyside6.py
.
-
Run Automation:
- Open the generated script and execute it to perform the automation.
Here's an example of how to use the application:
- Enter "MyApp" in the "Name" field.
- Enter "example.com" in the "Browser" field.
- Add an XPath (e.g.,
/html/body/div[1]/.../div[1]/form/div[5]/a
) in the "Add" field. - Select "Click" mode and click "Add".
- Click "Ready" to generate the script.
- Open
text_output_pyside6.py
to view the generated script.
Feel free to fork this repository and submit pull requests. Contributions are welcome!
For any questions or feedback, please contact [email protected].
This README is designed to help users understand your project, its purpose, and how to use it effectively. It also includes tags to improve discoverability.