https://github.com/hjsblogger/selenium-tool-tip-validation
This repository contains demo code for extracting validation tooltip
https://github.com/hjsblogger/selenium-tool-tip-validation
selenium selenium-automation selenium-python selenium-webdriver tutorial
Last synced: about 1 year ago
JSON representation
This repository contains demo code for extracting validation tooltip
- Host: GitHub
- URL: https://github.com/hjsblogger/selenium-tool-tip-validation
- Owner: hjsblogger
- Created: 2025-01-02T12:27:10.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-03T11:15:08.000Z (over 1 year ago)
- Last Synced: 2025-01-03T12:25:37.872Z (over 1 year ago)
- Topics: selenium, selenium-automation, selenium-python, selenium-webdriver, tutorial
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tool-Tip text validation with Selenium & Python

Repo Inspiration : [YouTube Video](https://www.youtube.com/watch?v=qItS8AXOwww)
## Pre-requisites for test execution
**Step 1**
Create a virtual environment by triggering the *virtualenv venv* command on the terminal
```bash
virtualenv venv
```

**Step 2**
Navigate the newly created virtual environment by triggering the *source venv/bin/activate* command on the terminal
```bash
source venv/bin/activate
```
**Step 3**
Procure the LambdaTest User Name and Access Key by navigating to [LambdaTest Account Page](https://accounts.lambdatest.com/security). You might need to create an an account on LambdaTest since it is used for running tests on the cloud Grid.

**Step 4**
Add the LambdaTest User Name and Access Key in the *Makefile* that is located in the parent directory. Once done, save the Makefile.

## Dependency/Package Installation
Run the *make install* command on the terminal to install the desired packages (or dependencies) - Pytest, Selenium, etc.
```bash
make install
```


With this, all the dependencies and environment variables are set. Instead of PyUnit/*unittest*, the Pytest framework is used for test execution. The
[LambdaTest Selenium Playground - Input Form Demo](https://www.lambdatest.com/selenium-playground/input-form-demo) website is used for demonstration purposes.
Follow the below mentioned steps to run automated tests using Selenium Python:
**Step 1**
Change the *EXEC_PLATFORM* variable to *local* in [.env](https://github.com/hjsblogger/selenium-tool-tip-validation/blob/master/.env) in case you want to run tests on your local machine.
Alternatively, you can also set *EXEC_PLATFORM* environment variable to *cloud*. Trigger the command *export EXEC_PLATFORM=local* on the terminal.
**Step 2**
Trigger the command *make clean* to clean the remove _pycache_ folder(s) and .pyc files

**Step 3**
Trigger the respective *make* command on the terminal to run the test(s). For example, run the command *make tool_tip_verification_demo* for triggering the test that validates the tool-tip.

As seen above, the test execution was successful and the status is "Completed". You can find the status of test execution in the [LambdaTest Automation Dashboard](https://automation.lambdatest.com/build).


## Have feedback or need assistance?
Feel free to fork the repo and contribute to make it better! Email to [himanshu[dot]sheth[at]gmail[dot]com](mailto:himanshu.sheth@gmail.com) for any queries or ping me on the following social media sites:
LinkedIn: [@hjsblogger](https://linkedin.com/in/hjsblogger)
Twitter: [@hjsblogger](https://www.twitter.com/hjsblogger)