I'm using RSpec framework with capybara + eyes_selenium for visual testing, and i want to integrate mobile visual testing. i installed the appium_capybara, and it works with a remote appium server that functions as a node in my remote selenium hub.
So far it works great, I've managed to login to my iOs simulator and interact with the page. The problem is integrating this whole thing with applitools.
i'm using the gem eyes_selenium, but i can't seem to perform Eyes.open with my Appium::Capybara::Driver object, getting an exception that this driver is Unknown.
Eyes.open(app_name: 'Applitools', test_name: test_name, viewport_size: viewport_size, driver: Capybara.page.driver)
anyone managed to make it work ?
Looking at the source for the
eyes_seleniumgem, the only place that error can come from is from theeyes_drivermethod - https://github.com/applitools/eyes.sdk.ruby/blob/master/lib/applitools/selenium/eyes.rb#L39 - which is implemented as belowAt a first glance the
elsesection of that looks fully broken to me (why create a new instance of Applitools::Selenium::Driver just to then raise an error?). However, that leaves only a few possibilities for why it's not working for you,Appium::Capybara::Driveris not a driver type supported by theeyes_seleniumgemAppium::Capybara::Driverto be supported, such as 'applitools/capybara', although after a quick look through the eyes_selenium code I don't think it adds thedriver_for_eyesmethod to any ancestor class ofAppium::Capybara::Driver(does patch Appium::Driver though) so #1 is probably more likely.