Module: Bucky::TestEquipment::SeleniumHandler::WaitHandler

Included in:
PageObject::BasePageObject, UserOperation::UserOperationHelper
Defined in:
lib/bucky/test_equipment/selenium_handler/wait_handler.rb

Class Method Summary collapse

Class Method Details

.wait_until_helper(timeout, interval, ignore, &block) ⇒ Object



12
13
14
15
16
17
# File 'lib/bucky/test_equipment/selenium_handler/wait_handler.rb', line 12

def wait_until_helper(timeout, interval, ignore, &block)
  wait = Selenium::WebDriver::Wait.new(timeout: timeout, interval: interval, ignore: [ignore])
  wait.until { block.call }
rescue Selenium::WebDriver::Error::TimeoutError
  raise ignore, "Wait until the limit times for #{caller[1][/`([^']*)'/, 1]}\n   #{$ERROR_INFO.message}"
end