- package: tis-wapt-selenium
- name: WAPT Selenium
- version: 4.11.2-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.2-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 : eb49d9b6-a381-4091-a895-0cb9b24ad88c
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : a106c3f47388da26f1e1d29b1d09ec43d79af062ebdc388345c080165db646f7
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : FuHy0AgX9AzQqSvA6DYZxfyx9Az7M+c2M8SVIlWJSv16se7yI2J232KWuulkRWDfEnJb1Id/68ZPJKbMF25sSQfjShU6v4Hp9sKE63lQmDd/rVC/PDsl62ceSMLowM+1iKEptrwc56MIfPKyOnTlieFJqAsKPEGorS+tlqIJK7Dtq5gOP3bx8EtAHskTaP/pk+PXPqkQU3R8pcSQ8JUr+Ov56Xk5DjD5KZqYEImHWnensZzfXEZSriXhcSkObMP9RvqgB7Rf/z4VRwKTHZzAzPXu/VL6KbJudonFixDk3hfYdSoW870K8ewMXE/z/rZfHBDa91AH6KzA3wkXy0L0jA==
signature_date : 2023-08-06T10:00:14.969063
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
1f15d548380c20a451d19c362b76873606413ec7c2e46b658c1fc82fcfbcaa73 : selenium.zip
a106c3f47388da26f1e1d29b1d09ec43d79af062ebdc388345c080165db646f7 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
4d729dde68d5b5c662576cd209cfdf022a067df22cb274ea64b9e67c60d0bbda : WAPT/changelog.txt
0fe79a123e5d7a3b6e46dd5a2bc5789d9578983704921c30ca1f881632aae9ef : luti.json
a4e407e1d9ce32443bb48663405ab5e05f4df31db7082d7a4cd266e243f993bb : WAPT/control
4.5.0-12
complete control
no longer download driver
handle proxy
now compatible for all os
meta package