我正在尝试在Virtualbox上的IE9中使用watir-webdriver和rspec运行测试。当我运行测试时,我收到以下错误:
An error occurred in an after hook ChildProcess:LaunchError: (216)
occurred at F:/lib/ruby/gems/2.1.0/gems/childprocess-0.5.5/lib/childprocess/windows/process_builder.rb:87in 'create_process'
Rspec返回:
Failure/Error: let(:x) {@browser ||=Watir::Browser.new :ie}
ChildProcess::LaunchError: (216)
G:/Test.rb:12:in 'new'
G:/Test.rb:12:in 'block (2 levels) in <top (required)>'
G:/Test.rb:13:in 'block (2 levels) in <top (required)>'
我可以在我的原生版IE10,Chrome和Firefox上运行相同的测试。
我搜索过的关于错误的一切都与:
有关216 - The image file %1 is valid, but is for a machine type other than the current machine. - ERROR_EXE_MACHINE_TYPE_MISMATCH