Method: Sapphire::WebAbstractions::RubySeleniumWebDriver#SetAlert

Defined in:
lib/sapphire/Adapters/Selenium/RubySeleniumWebDriver.rb

#SetAlert(text) ⇒ Object



38
39
40
41
42
43
# File 'lib/sapphire/Adapters/Selenium/RubySeleniumWebDriver.rb', line 38

def SetAlert(text)
  alert = self.Browser().switch_to.alert
  alert.send_keys(text)
  alert.accept()
  self.Browser().switch_to.window(self.Browser().window_handles[0])
end