Permalink
Browse files

for IE9 onward, change -nomerge startup option to -noframemerging. Th…

…e -nomerge option was deprecated.
  • Loading branch information...
1 parent b6a32f4 commit cf5e3203ee0f77de70eeb496adba29e683247af7 Hugh McGowan committed Jan 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 watir/lib/watir/ie-process.rb
@@ -6,7 +6,8 @@ class Process
def self.start
program_files = ENV['ProgramFiles'] || "c:\\Program Files"
startup_command = "#{program_files}\\Internet Explorer\\iexplore.exe"
- startup_command << " -nomerge" if IE.version_parts.first.to_i >= 8
+ startup_command << " -nomerge" if IE.version_parts.first.to_i == 8
+ startup_command << " -noframemerging" if IE.version_parts.first.to_i >= 9
process_info = ::Process.create('app_name' => "#{startup_command} about:blank")
process_id = process_info.process_id
new process_id

0 comments on commit cf5e320

Please sign in to comment.