Automatic Bot Application Built with PySide6 that automates browser interactions using Selenium.
- Repeatedly Actions:Uses Selenium to automate browser actions.
-
Setup:
- The application initializes a GUI with input fields and buttons.
- Users can input the application name, browser link.
-
Input Handling:
- Application name.
- Browser link.
- XPaths.
-
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.
- How to get it (inspect object in your chrome right by looking at copy options and choose full xpath
- 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.
- 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 tinasora5553@gmail.com.