This repository contains scripts for testing web applications using Selenium WebDriver.
This guide provides steps to install ChromeDriver, which is a necessary component for running automated tests with Selenium WebDriver on the Google Chrome browser.
Ensure that you have the Google Chrome browser installed on your system. You can check your Google Chrome version by typing google-chrome --version
in the terminal or navigating to chrome://version
in the Chrome browser.
- Visit the ChromeDriver download page.
- Download the version that matches your installed Google Chrome version.
- Unzip the downloaded file to retrieve
chromedriver.exe
. - Place
chromedriver.exe
in a directory of your choice and add that directory to your system's PATH environment variable.
- If you have Homebrew installed, simply run:
brew install chromedriver
. - Check if the correct version of ChromeDriver is installed by running
chromedriver --version
in the terminal.
- Use the following command to install ChromeDriver:
sudo apt-get install chromium-chromedriver
. - Depending on your system's configuration, you may need to add the directory
/usr/lib/chromium-browser/
to the PATH environment variable:export PATH=$PATH:/usr/lib/chromium-browser/
. - Verify the installation by running
chromedriver --version
in the terminal.
Remember to always match your ChromeDriver version with your Google Chrome browser version to avoid compatibility issues. Keep both your browser and ChromeDriver updated to the latest versions for the best results.
For more details, refer to the official ChromeDriver documentation.
The monkey_tester.py
script is a simple monkey testing utility that interacts with a specified web application.
Ensure that you have Python and the necessary packages installed. You can install the packages using pip:
pip install selenium click
You can run the script using the following command:
python monkey_tester.py --url <url_of_web_application> --delay <delay_between_actions> --interactions <number_of_interactions> --load-wait-time <time_to_wait_for_page_load>
The script accepts the following parameters:
--url
: The URL of the web application to test. The default is https://sea-lion-app-q6nwz.ondigitalocean.app/sample1.--delay
: The time delay (in seconds) between actions on the web application. The default is 0.5 seconds.--interactions
: The number of interactions to perform on the web application. The default is 100.--load-wait-time
: The maximum time to wait (in seconds) for the page to load. The default is 10 seconds.
Remember to replace <url_of_web_application>
, <delay_between_actions>
, <number_of_interactions>
, and <time_to_wait_for_page_load>
with your desired values.