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

Documentation: Is there any? #53

Open
lflucasferreira opened this issue Oct 23, 2019 · 3 comments
Open

Documentation: Is there any? #53

lflucasferreira opened this issue Oct 23, 2019 · 3 comments

Comments

@lflucasferreira
Copy link

I do not understand the use of this gem but certainly, I would like.

I do not know how to use all the features inside this project. Could you provide decent documentation?

Thank you!

@KazuCocoa
Copy link
Member

KazuCocoa commented Nov 3, 2019

As far as I know of is https://www.rubydoc.info/gems/appium_capybara/ and this repository for now.
Added the link and example a bit in readme.


It is really appreciated if anyone can help this since I fix a few issues in this repository because no one maintained this repository, but I haven't used this.

@philipfong
Copy link

I've tried using this library and I'm not finding any way to take advantage of Capybara's DSL here. Any help would be appreciated. I do have the driver set up where I can start a Appium::Capybara::Driver session, but that is as far as I'm getting.

@teyamagu
Copy link
Contributor

teyamagu commented Nov 12, 2022

@philipfong If you want to use Capybara's DSL, you can use Capybara.current_session.<DSL>, I think.
Unfortunately, we can't use Navigating and Clicking links and buttons of DSL

example in https://github.com/appium/appium_capybara/blob/master/example/spec/ios_example_spec.rb

# 
[1] pry(#<RSpec::ExampleGroups::UICatalogSmokeTest>)> Capybara.current_session.all(:class, 'XCUIElementTypeButton').count
=> 12
[2] pry(#<RSpec::ExampleGroups::UICatalogSmokeTest>)>

example app view

I hope this will help.

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

No branches or pull requests

4 participants