I am using Watir-WebDriver (0.9.1) with RAutomation to handle window model 
dialog.

I am running this job in a VM on Jenkins.
Scenario: I am trying to attach a file through window model dialog.
When I click 'Add Attachments' link, window dialog pops-up, here I get *Modal 
dialog present: "" (Selenium::WebDriver::Error::UnhandledAlertError) *error 
in jenkins console. But, when I run the same in my local machine, it works 
all well. Here is the step in Cucumber

When /^I attach an external file present in "(.*)" path$/ do |file_path|
  window_model = RAutomation::Window.new(:title => "Open")
  window_model.text_field(:class => "Edit").set file_path
  window_model.button(:value => "&Open").click
end

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to