-
-
Save Tset-Noitamotua/76f69cee428013854c77 to your computer and use it in GitHub Desktop.
get Selenium version used by Selenium2Library and log it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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