lib/selenium.pm

openQA - selenium webdriver support

This Selenium module exports subroutines helpers to integrate Selenium::Remote::Driver into openQA tests

Note: Selenium module works only when openvswitch networking is used!

Chromedriver and chromium are installed on SUT, firewall is enabled. OpenQA worker then initiate connection to SUT and returns Selenium::Remote::Driver to be used in tests.

Usage:

use selenium;
add_chromium_repos;   # for SLES12

install_chromium;
enable_selenium_port;

my $driver = selenium_driver;
...