Как проверить версию установленного API Selenium?

Если вы можете, запустите «tail -f / var / log / dmesg» с терминала, затем перейдите к графическому интерфейсу и попробуйте войти в систему. Вы также можете попробовать запустить в GNOME-2d

1
задан 5 October 2013 в 02:30

4 ответа

Вот как я проверил версию селена в Python.

>>> 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
10
ответ дан 25 May 2018 в 01:02

Вы также можете запустить locate selenium в терминале, и вы можете увидеть номер версии в именах файлов.

4
ответ дан 25 May 2018 в 01:02
[F1]
4
ответ дан 25 May 2018 в 01:02
  • 1
    Или как одна команда: python -c 'import selenium; print selenium.__version__' – David Foerster 14 March 2017 в 21:07
  • 2
    Требуется немного больше текста для сопровождения вашего ответа. – Phil UK 15 March 2017 в 05:51

Другой способ определения версии Selenium - через командную строку:

dpkg-query --list '*selenium*'

Выход:

Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===================================================-==============================-==============================-=========================================================================================================== ii python-selenium 2.48.0+dfsg1-2 all Python bindings for Selenium
0
ответ дан 25 May 2018 в 01:02

Другие вопросы по тегам:

Похожие вопросы: