tis-wapt-selenium-webdriver-chrome

138.0.7204.92-3
Ce paquet est utilisé pour mettre à jour les paquets qui nécessitent l'utilisation de selenium, il fournit le pilote chrome
27507 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-wapt-selenium-webdriver-chrome icon
  • package : tis-wapt-selenium-webdriver-chrome
  • name : Selenium WebDriver Chrome
  • version : 138.0.7204.92-3
  • categories : Development
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor : Chromium and WebDriver teams
  • licence : proprietary_free,wapt_public
  • locale : all
  • target_os : darwin
  • impacted_process : chromedriver
  • architecture : all
  • signature_date : 2025-07-06 00:01
  • size : 9.57 Mo
  • installed_size : 14.32 Mo
  • homepage : https://chromedriver.chromium.org
  • conflicts :
package           : tis-wapt-selenium-webdriver-chrome
version           : 138.0.7204.92-3
architecture      : all
section           : base
priority          : optional
name              : Selenium WebDriver Chrome
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : This package is used for update packages that require selenium usage, it provides the chrome driver
depends           : 
conflicts         : tis-selenium-chrome-driver
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.3
sources           : https://googlechromelabs.github.io/chrome-for-testing/#stable
installed_size    : 14315520
impacted_process  : chromedriver
description_fr    : Ce paquet est utilisé pour mettre à jour les paquets qui nécessitent l'utilisation de selenium, il fournit le pilote chrome
description_pl    : Ten pakiet jest używany do aktualizacji pakietów, które wymagają użycia selenium, zapewnia sterownik chrome
description_de    : Dieses Paket wird für Update-Pakete verwendet, die die Verwendung von Selenium erfordern, und stellt den Chrome-Treiber bereit
description_es    : Este paquete se utiliza para actualizar paquetes que requieren el uso de selenium, proporciona el controlador de chrome
description_pt    : Este pacote é utilizado para atualizar pacotes que requerem a utilização do selénio e fornece o controlador do chrome
description_it    : Questo pacchetto è usato per aggiornare i pacchetti che richiedono l'uso di Selenium e fornisce il driver di chrome
description_nl    : Dit pakket wordt gebruikt voor het bijwerken van pakketten die selenium vereisen, het biedt het chrome stuurprogramma
description_ru    : Этот пакет используется для обновления пакетов, требующих использования selenium, он предоставляет драйвер chrome
audit_schedule    : 
editor            : Chromium and WebDriver teams
keywords          : selenium,driver,chrome
licence           : proprietary_free,wapt_public
homepage          : https://chromedriver.chromium.org
package_uuid      : da98520c-05f4-4eaa-b112-ad1be9fee0df
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 057315a8260cf30af51ee9b8dd8fbdf10a0f0ffb9825e7409be03e3c9ae9d552
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-06T00:01:04.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : rGb7Mr7YePS7HYPj78GU9w9e7tTYTLyH3iTPLE1ukgoi0orcQC6DY/7ZLoB1l3oBTcHs/3Exb9TK0ZpubqnExTyVoULmO0wI3pzEVYTz8LDbxRK26cixGqDYhTYztbFZnCm3NtT0rlD2ULIYCEGfgz/+oyk5J7kSt9ea6QjGr8fPQGfMiHXX7s7Cn6NWQlPfIk6qYz2mTtA5wNowmK2T/+rtM95/Btep7iHRormmKbVp/6/sDo5S4oMp/eK+WLvQ32ScyHNi4cjP3E+NPQxeXV2GE0DR6yWDcypSUPV4JB/NubhfYRxqttwCjbmHi5O1sUuEGkmsgxMHlK0LCnr9WQ==
# -*- coding: utf-8 -*-
from setuphelpers import *

bin_name = "chromedriver"


def install():
    path_selenium = makepath(WAPT.wapt_base_dir, "selenium")
    mkdirs(path_selenium)
    filecopyto(glob.glob(f"*{bin_name}*")[0], path_selenium)


def uninstall():
    path_selenium = makepath(WAPT.wapt_base_dir, "selenium")
    # removing binary
    glob_path = makepath(path_selenium, bin_name + "*")
    for bin_to_delete in glob.glob(glob_path):
        print(f"removing {bin_to_delete}")
        remove_file(bin_to_delete)

    # cleaning folder if empty
    if isdir(path_selenium):
        if dir_is_empty(path_selenium):
            print(f"{path_selenium} is empty removing folder")
            remove_tree(path_selenium)
        else:
            print(f"{path_selenium} is not empty")


def audit():
    # Declaring local variables
    package_version = control.version.split("-", 1)[0]

    # Getting installed software version
    if installed_softwares(name=r"\bGoogle Chrome\b"):
        chrome_version = installed_softwares(name=r"\bGoogle Chrome\b")[0]["version"]
    else:
        chrome_version = None

    # Auditing software
    if chrome_version != package_version:
        print(
            f"your browser version is {chrome_version}, the driver version is {package_version}, if the versions are too different you may encounter issues"
        )
    return "OK"
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json"
    download_dict = {
        "windows-x64": "win64",
        "windows-x86": "win32",
        "windows-all": "win32",
        "debian(>8),ubuntu,redhat_based-all": "linux64",
        "darwin-all": "mac-x64",
        "darwin-x64": "mac-x64",
        "darwin-arm64": "mac-arm64",
    }
    download_str = download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]]

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)["channels"]["Stable"]
    version = json_load["version"]
    for to_download in json_load["downloads"]["chromedriver"]:
        if to_download["platform"] == download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]]:
            download_url = to_download["url"]
            latest_bin = to_download["url"].split("/")[-1]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin, "zip")
    # arch_list = ensure_list(control.architecture)
    # remove_outdated_binaries(version, filename_contains=("x64" if "x64" in arch_list else "x86" if "x86" in arch_list else []))

    # # Checking version from file
    # if get_os_name() == "Windows" and "windows" in control.target_os.lower():
    #     version_from_file = get_version_from_binary(latest_bin)
    #     if Version(version_from_file, 4) == Version(version, 4):
    #         print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
    #     else:
    #         error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
02c1e2a60508b6c3ccaf4892872b9c6c4564f0650f2dfc7ab59dae065afa771b : WAPT/control
057315a8260cf30af51ee9b8dd8fbdf10a0f0ffb9825e7409be03e3c9ae9d552 : WAPT/icon.png
5d1a8aed0a7ac955680a1a33964f1d48b2d09241752c79914de64012bd5e6ddb : chromedriver-mac-x64.zip
a2aa9d9ba564ea81a0536c0964656bae300aa479031797d940dc1c4b5d9a47f4 : luti.json
9440941a668415085082bd00bb88fd5c0b6175af3c7b7ae5f488c68ca103889a : setup.py
64b0d93eb7a1c324ad3a3e6ac387127867ed8d8e13b3891f72ab12dc791f78db : update_package.py