2 deleted 14 characters in body
source | link
  @modal = @browser.driver.switch_to.alert   #Switch to open windows modal
  key_to_send = "C:\\Users\\singhku\\Calabash_doc.pdf"  #Path and name of file
  @modal.send_keys(key_to_send)

  require 'win32ole'
  wsh = WIN32OLE.new('Wscript.Shell')
  wsh.AppActivate('Choose File to Upload')  #Name of the modal that is open
  wsh.SendKeys('{ENTER}')
  @modal = @browser.driver.switch_to.alert   #Switch to open windows modal
  key_to_send = "C:\\Users\\singhku\\Calabash_doc.pdf"  #Path and name of file
  @modal.send_keys(key_to_send)

  require 'win32ole'
  wsh = WIN32OLE.new('Wscript.Shell')
  wsh.AppActivate('Choose File to Upload')  #Name of the modal that is open
  wsh.SendKeys('{ENTER}')
@modal = @browser.driver.switch_to.alert   #Switch to open windows modal
key_to_send = "C:\\Users\\singhku\\Calabash_doc.pdf"  #Path and name of file
@modal.send_keys(key_to_send)

require 'win32ole'
wsh = WIN32OLE.new('Wscript.Shell')
wsh.AppActivate('Choose File to Upload')  #Name of the modal that is open
wsh.SendKeys('{ENTER}')
1
source | link

  @modal = @browser.driver.switch_to.alert   #Switch to open windows modal
  key_to_send = "C:\\Users\\singhku\\Calabash_doc.pdf"  #Path and name of file
  @modal.send_keys(key_to_send)

  require 'win32ole'
  wsh = WIN32OLE.new('Wscript.Shell')
  wsh.AppActivate('Choose File to Upload')  #Name of the modal that is open
  wsh.SendKeys('{ENTER}')