GithubHelp home page GithubHelp logo

I see "Failure/Error: if e = error()" error while running my TC for android using Ruby + Capybara + Appium + Rspec about appium_capybara HOT 8 OPEN

appium avatar appium commented on June 8, 2024
I see "Failure/Error: if e = error()" error while running my TC for android using Ruby + Capybara + Appium + Rspec

from appium_capybara.

Comments (8)

kay4444 avatar kay4444 commented on June 8, 2024

Is there any progress for this issue?

from appium_capybara.

kay4444 avatar kay4444 commented on June 8, 2024

Please let me know if you need nay additional info.

from appium_capybara.

bootstraponline avatar bootstraponline commented on June 8, 2024

I don't think this gen is maintained anymore.

from appium_capybara.

mishaaq avatar mishaaq commented on June 8, 2024

Capybara::Screenshot is not supported for now. See mattheworiordan/capybara-screenshot#142

from appium_capybara.

NishNutmeg avatar NishNutmeg commented on June 8, 2024

Was wondering if anyone is maintaining this Gem.would be nice if someone does.

from appium_capybara.

KazuCocoa avatar KazuCocoa commented on June 8, 2024

No one maintains this gem for now.(I've updated once to update ruby_lib.)

from appium_capybara.

KazuCocoa avatar KazuCocoa commented on June 8, 2024

BTW, browser_initialized? is deprecated in Capybara. So, mattheworiordan/capybara-screenshot#142 will break, I guess.


I think the error is disconnect session related one, and in this case, taking screenshots is failed. We should catch the exception or skip Capybara commands because of disconnection.


I add an example to taking screenshot as after hook, though.
https://github.com/appium/appium_capybara/blob/master/example/spec/spec_helper.rb#L11

from appium_capybara.

KazuCocoa avatar KazuCocoa commented on June 8, 2024

Anyway, to avoid this error, we need to add error handling in mattheworiordan/capybara-screenshot like the PR or add ignoring the error, or raising the other error?, in save_screenshot in appium capybara side, I suppose.
(But I don't like to add ignoring the general error in save_screenshot or the other method.)

from appium_capybara.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.