Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browserstack screenshots? #254

Closed
rchady opened this issue Nov 22, 2017 · 2 comments
Closed

Browserstack screenshots? #254

rchady opened this issue Nov 22, 2017 · 2 comments
Assignees

Comments

@rchady
Copy link

rchady commented Nov 22, 2017

Meta

Howitzer Version:

Driver and browser information:

Gem Versions:

Expected Behavior

A screenshot will be taken on error on browserstack.

Actual Behavior

I get the following error:

capybara-screenshot could not detect a screenshot driver for 'browserstack'. Saving with default with unknown results.
WARN: Screenshot could not be saved. An exception is raised: #<NoMethodError: undefined method `render' for #<Capybara::Selenium::Driver:0x007f8c7e2ca238>>.
2017/11/22 08:57:31 [INFO] :: CLOUD VIDEO [0m 0s] - [0m 30s] URL: [NOT IMPLEMENTED]

Steps to reproduce

  1. Write a failing test using the browserstack driver.
  2. Run rake
  3. Watch it fail.

It is very possible I'm missing something, but I gripped everything looking for any combination of 'browserstack' and 'screenshot'. Is there support yet? If not, how can I tell it to not try to take one?

@alexey-voronenko
Copy link
Contributor

Append

Capybara::Screenshot.register_driver(:browserstack) do |driver, path|
  driver.browser.save_screenshot path
end

to your browserstack driver config in config/drivers/browserstack.rb

@alexey-voronenko
Copy link
Contributor

In master d7e806d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants