Module: Bucky::TestEquipment::SeleniumHandler::WebdriverHandler
- Included in:
- TestCase::E2eTestCase
- Defined in:
- lib/bucky/test_equipment/selenium_handler/webdriver_handler.rb
Class Method Summary collapse
-
.create_webdriver(device_type) ⇒ Selenium::WebDriver
Create and return webdriver object.
Class Method Details
.create_webdriver(device_type) ⇒ Selenium::WebDriver
Create and return webdriver object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/bucky/test_equipment/selenium_handler/webdriver_handler.rb', line 14 def create_webdriver(device_type) @@config = Bucky::Utils::Config.instance driver_args = create_driver_args(device_type) driver = Selenium::WebDriver.for(:remote, **driver_args) driver.manage.window.resize_to(1280, 1000) driver.manage.timeouts.implicit_wait = @@config[:find_element_timeout] driver rescue StandardError => e Bucky::Core::Exception::BuckyException.handle(e) end |