wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz
最近,它抛出错误404: Not found
我知道accept_js_confirms和reject_js_confirms方法,但我希望在执行操作之前评估对话框的内容。page.driver.browser.switch_to.alert expect(alert.text).to eq t('report_periods.edit.delete_confirmation') alert.acceptPlease use Capybara::Session#accept_confirm or Capybara::Session#dismiss_confirm
我试图在rspec Ruby on Rails中使用带有capybara/selenium的无头铬模式,并在尝试单击“确认”对话框时出错。)得到了这个错误 Failure/Error: page.driver.browser.switch_to.alert.accept/ =~ RUBY_PLATFORM else end
d