- package: tis-wapt-selenium
- name: WAPT Selenium
- version: 4.11.1-14
- categories: Development
- maintainer: WAPT Team,Tranquil IT
- locale: all
- target_os: all
- architecture: all
- signature_date:
- size: 7.88 Mo
- installed_size: 9.97 Mo
- homepage : https://www.selenium.dev/
package : tis-wapt-selenium
version : 4.11.1-14
architecture : all
section : base
priority : optional
name : WAPT Selenium
categories : Development
maintainer : WAPT Team,Tranquil IT
description : The selenium package is used to automate web browser interaction from Python
depends :
conflicts :
maturity : PROD
locale : all
target_os : all
min_wapt_version : 2.1
sources : https://pypi.org/project/selenium/
installed_size : 9969664
impacted_process :
description_fr : Le paquet selenium est utilisé pour automatiser l'interaction avec le navigateur web à partir de Python
description_pl : Pakiet selenium służy do automatyzacji interakcji z przeglądarką internetową z Pythona
description_de : Das Selenium-Paket wird verwendet, um die Interaktion mit dem Webbrowser von Python aus zu automatisieren
description_es : El paquete selenium se utiliza para automatizar la interacción con el navegador web desde Python
description_pt : O pacote de selénio é utilizado para automatizar a interacção do navegador web a partir de Python
description_it : Il pacchetto selenium viene utilizzato per automatizzare l'interazione con il browser web da Python
description_nl : Het selenium pakket wordt gebruikt om web browser interactie te automatiseren vanuit Python
description_ru : Пакет selenium используется для автоматизации взаимодействия с веб-браузером из Python
audit_schedule :
editor :
keywords :
licence :
homepage : https://www.selenium.dev/
package_uuid : 9ffbaf48-a4ba-4064-8804-26c53ac20c58
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : a106c3f47388da26f1e1d29b1d09ec43d79af062ebdc388345c080165db646f7
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : jvCaO18PVECQYHdJ+umSsR+jjQdRxlwqNuKdC+qY9RH+ZvteuT/AF474ItTj2ecYiOMhPep4clsnEJuGufBsdvrxf8KCbMwCit4WIq4ox+RxqG3juU0hA9taaJ5XCF2AKyOZKYuVbmUZL1j54CvsGy4p5CWchK2ueqM7atuI5d4SDiYM8jgeYiNqtUQZJvXMAFOaFELZx4oBVyDJ8WoFqzTn+evrzZzK6bb60xDPSOsjhdt6CAGIAOgxF0A+KSEh0NCKChjmhethNwzFNyBzYcCj3wTFOeMw9vfOd5ZHy2IBjj6XIgXLr+gmdJxtYSTZykCR6TLaP1PvLr2VJP8pgw==
signature_date : 2023-08-06T08:00:16.508034
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
# -*- coding: utf-8 -*-
from setuphelpers import *
allow_arbitrary_install = True
package_depend_order_list_any_prefix = [
"tis-selenium-chrome-driver",
"tis-selenium-firefox-driver",
]
def install():
unzip("selenium.zip")
path_selenium = makepath(WAPT.wapt_base_dir, "selenium")
mkdirs(path_selenium)
copytree2("selenium", path_selenium)
# Meta package part
package_prefix = control.package.split("-", 1)[0]
package_depend_order_list = [package_prefix + "-" + x.split("-", 1)[1] for x in package_depend_order_list_any_prefix]
package_depend_found = False
if [y for y in package_depend_order_list if WAPT.is_installed(y)]:
package_depend_found = True
print("OK: A WAPT Selenium Driver is already installed with WAPT")
else:
if allow_arbitrary_install:
print(
"WARNING: A WAPT Selenium Driver will be installed with WAPT since this package allow arbitrary install based on available package in a specific order"
)
for pkg_name in package_depend_order_list:
if WAPT.is_available(pkg_name):
package_depend_found = True
print("Installing: %s" % pkg_name)
WAPT.install(pkg_name)
WAPT.audit(pkg_name)
break
if not package_depend_found:
error(
"ERROR: No WAPT Selenium Driver have been deployed on this system, please import and deploy the package adapted to your organization"
)
def uninstall():
path_selenium = makepath(WAPT.wapt_base_dir, "selenium")
if isdir(path_selenium):
remove_tree(path_selenium)
# -*- coding: utf-8 -*-
from setuphelpers import *
from waptutils import create_recursive_zip
from waptutils import CustomZipFile
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
path_selenium = makepath(basedir, "selenium")
if isdir(path_selenium):
remove_tree(path_selenium)
mkdirs(path_selenium)
if get_os_name() == "Windows":
pathwaptpython = makepath(WAPT.wapt_base_dir, "waptpython.exe")
else:
pathwaptpython = makepath(WAPT.wapt_base_dir, "waptpython.sh")
if proxies:
run('"%s" -m pip install selenium --target="%s" --proxy="%s"' % (pathwaptpython, path_selenium, proxies["http"]))
else:
run('"%s" -m pip install selenium --target="%s"' % (pathwaptpython, path_selenium))
# Get Selenium version from dirname
version = glob.glob(makepath(path_selenium, "selenium-*.dist-info"))[0].rsplit("-", 2)[-2].rsplit(".", 1)[0]
# Create Selenium zip
create_recursive_zip(CustomZipFile(r"selenium.zip", "w"), path_selenium)
remove_tree(path_selenium)
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
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, inc_build=True)
control.save_control_to_wapt()
# Validating or not update-package-sources
return package_updated
0d4eaba69641b120291028ace49cb48d3a9f657726561511822ed41162e70685 : setup.py
51def580fb9ccf8354f5a8845d101e5c64fcdb797f44057748a6f8efa2764118 : update_package.py
44caa5e067af67b8b83d418879cc14bdc89d688bbcdb6912f440d471fccc77f0 : selenium.zip
a106c3f47388da26f1e1d29b1d09ec43d79af062ebdc388345c080165db646f7 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
4d729dde68d5b5c662576cd209cfdf022a067df22cb274ea64b9e67c60d0bbda : WAPT/changelog.txt
e5b14dfe8ebbe91146a148bb9612418a2ebd49ea7656b053bbf8bea1fe64c727 : luti.json
572e5a6c81f1f543e1da4e73ebc9fa76d76b366ff37741685ddc70fbafd4da2c : WAPT/control
4.5.0-12
complete control
no longer download driver
handle proxy
now compatible for all os
meta package