Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/velespitt/selenium-smooth-scroll
Mouse Scroll Wheel Imitation both applicable for specified WebElement or as Infinite Loop.
https://github.com/velespitt/selenium-smooth-scroll
pom selenium-webdriver test-automation testng
Last synced: 1 day ago
JSON representation
Mouse Scroll Wheel Imitation both applicable for specified WebElement or as Infinite Loop.
- Host: GitHub
- URL: https://github.com/velespitt/selenium-smooth-scroll
- Owner: velespitt
- License: apache-2.0
- Created: 2025-01-29T08:32:06.000Z (5 days ago)
- Default Branch: main
- Last Pushed: 2025-01-31T15:01:04.000Z (3 days ago)
- Last Synced: 2025-01-31T16:19:45.455Z (3 days ago)
- Topics: pom, selenium-webdriver, test-automation, testng
- Language: Java
- Homepage: https://yusufasik.com
- Size: 219 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Selenium with JavaScript & TestNG
This repository contains useful Selenium functions written in JavaScript and integrated with TestNG, designed to enhance web automation testing. The code includes various utilities and test scripts, including infinite scroll handling and other advanced functions for robust and efficient automation.
## Features
- **Infinite Scroll Loop:** Automatically scrolls through a webpage with infinite scrolling.
- **Custom Selenium Commands:** Useful Selenium functions for smoother interaction with dynamic content.
- **TestNG Integration:** Organized test cases and execution using TestNG.
- **Cross-browser Testing:** Scripts are adaptable for multiple browsers.## Prerequisites
To use this repository, ensure you have the following installed:
- Java Development Kit (JDK) 8 or higher
- Maven
- Node.js
- WebDriver (Chrome, Firefox, etc.)
- TestNG plugin (for Maven or IDE)
- Selenium WebDriver and necessary dependencies## Installation
### Clone the Repository
```bash
git clone https://github.com/velespitt/test-automation.git
cd test-automation/selenium-test
```## Set Up Dependencies
### For Selenium with JavaScript:
Run `npm install` to install required packages such as `selenium-webdriver`.```bash
npm install selenium-webdriver
```### For TestNG
Add TestNG dependencies to your `pom.xml` file.```
org.testng
testng
7.1.0
test
```
## Usage
### Running TestNG Tests
```bash
mvn clean test
```## Contributing
If you would like to contribute to this repository:
1. Fork the repository.
2. Make your changes or add new accessibility testing results.
3. Submit a pull request for review.# License
This repository is licensed under the [Apache License](LICENSE).
## Contributing
If you would like to contribute to this repository:
1. Fork the repository.
2. Make your changes/fixes or add new features.
3. Submit a pull request for review.---
For questions or suggestions, feel free to create an issue in this repository.