teampoltergeist / poltergeist

A PhantomJS driver for Capybara
MIT License
2.5k stars 415 forks source link

page.driver.debug opens chrome file_not_found #863

Closed ChrisCPO closed 7 years ago

ChrisCPO commented 7 years ago

expecting: { inspector: true } with page.driver.debug to open a chrome window with two links.

actual: A chrome window is open was opened but reported file not found

Your file was not found

It may have been moved or deleted.
ERR_FILE_NOT_FOUND

settings:

  Capybara::Poltergeist::Driver.new(
    app,
    inspector: true,
    debug: false,
    phantomjs_logger: StringIO.new,
    timeout: timeout_time.to_i,
    js_errors: false,
    window_size: [1300, 1000],
    phantomjs_options: [
      "--debug=no",
      "--load-images=no",
      "--ignore-ssl-errors=yes",
      "--ssl-protocol=TLSv1",
    ],
  )

Once test I was able to open debug and view the ip of the on

ChrisCPO commented 7 years ago

sorry my cursor is not responding correctly,

Once during a test I turned on debug: true and was able to view the testing site via a url/ip in the debug info

twalpole commented 7 years ago

Current chromes are no longer compatible with the PhantomJS remote debugging, you'd need to use a legacy version (before the blink engine split) or safari.