Coder Social home page Coder Social logo

competencytestlvl / webdriver_auto_update Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 11.0 211 KB

A program to check existing local chrome driver version and automatically downloads the latest available version online.

Home Page: https://pypi.org/project/webdriver-auto-update/

License: MIT License

Python 100.00%
auto browser chrome driver chromedriver download selenium webdriver update

webdriver_auto_update's Introduction

webdriver_auto_update

A tool for managing ChromeDriver downloads and updates

Features

  • Automatically downloads the latest stable version of ChromeDriver.
  • Compares the local ChromeDriver version with the latest online version.
  • Updates ChromeDriver to the latest version if necessary.
  • Works on Windows, Linux, and macOS.

Getting Started

Pre-requisites:

  1. Python 3
  2. Download Google Chrome
  3. pip install selenium
  4. Additional required packages listed in requirements.txt.

Installation (Option 1)

Clone this repository from GitHub

git clone https://github.com/competencytestlvl/webdriver_auto_update.git

Installation (Option 2)

Install the required package from PyPI:

pip install webdriver-auto-update

Usage

  1. Navigate to the directory where you've cloned or downloaded the repository

  2. Run the following example:

    from webdriver_auto_update.chrome_app_utils import ChromeAppUtils
    from webdriver_auto_update.webdriver_manager import WebDriverManager
    
    # Using ChromeAppUtils to inspect Chrome application version
    chrome_app_utils = ChromeAppUtils()
    chrome_app_version = chrome_app_utils.get_chrome_version()
    print("Chrome application version: ", chrome_app_version)
    
    # Target directory to store chromedriver
    driver_directory = "/path/to/driver/directory"
    
    # Create an instance of WebDriverManager
    driver_manager = WebDriverManager(driver_directory)
    
    # Call the main method to manage chromedriver
    driver_manager.main()
    

Note

  • The objective of this program is to reduce redundancy of searching and downloading the updated version of chrome driver to the OpenSource community.
  • Intended to be used in Selenium projects, browser testing or web automation.

Contributing

Contributions are welcome! If you find any issues or want to add new features, feel free to submit a pull request or reach out to me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.