Skip to content

Instantly share code, notes, and snippets.

@Tset-Noitamotua
Forked from bmannix/get_sel_vers.py
Created November 16, 2015 10:38
Show Gist options
  • Save Tset-Noitamotua/76f69cee428013854c77 to your computer and use it in GitHub Desktop.
Save Tset-Noitamotua/76f69cee428013854c77 to your computer and use it in GitHub Desktop.
get Selenium version used by Selenium2Library and log it
from robot.libraries.BuiltIn import BuiltIn
from robot.api import logger
def log_s2l_version():
"""
Gets the Selenium version used by Selenium2Library
"""
seleniumlib = BuiltIn().get_library_instance('Selenium2Library')
browser = seleniumlib._current_browser()
sel_version = locals()['webdriver'].__version__
logger.info('Selenium Version is: %s' % sel_version)
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment