Ich möchte die Version der von mir verwendeten Selenium-API überprüfen. Ich habe versucht, es zu googeln, konnte es aber nicht herausfinden.
Ich möchte die Version der von mir verwendeten Selenium-API überprüfen. Ich habe versucht, es zu googeln, konnte es aber nicht herausfinden.
Antworten:
Hier ist, wie ich in Python nach der Version von Selen gesucht habe.
>>> import selenium
>>> help (selenium)
Help on package selenium:
NAME
selenium
FILE
c:\python27\lib\site-packages\selenium\__init__.py
DESCRIPTION
# Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
PACKAGE CONTENTS
common (package)
selenium
webdriver (package)
DATA
__version__ = '2.48.0'
VERSION
2.48.0
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import selenium
>>> print selenium.__version__
3.3.0
python -c 'import selenium; print selenium.__version__'
print( selenium.__version__ )für Python3 ... ja, es ist sehr sehr sehr sehr sehr sehr sehr sehr sehr sehr sehr sehr sehr sehr offensichtlich. Könnte aber jemandem helfen!
Eine andere Möglichkeit, die Selenium-Version zu bestimmen, ist über die Befehlszeile:
dpkg-query --list '*selenium*'
Ausgabe:
Gewünscht = Unbekannt / Installieren / Entfernen / Löschen / Halten | Status = Nicht / Inst / Conf-Dateien / Entpackt / halF-conf / Half-inst / trig-aWait / Trig-pend | / Err? = (Keine) / Wiederherstellen erforderlich (Status, Err: Großbuchstaben = schlecht) || / Name Version Architektur Beschreibung +++ - ============================================= ===== - ============================== - ============= ================= - ================================ ================================================== ========================= ii Python-Selen 2.48.0 + dfsg1-2 alle Python-Bindungen für Selen