How to call Selenium methods with defined Capybara driver using Ruby?
<p>I use <strong>Capybara</strong> as a driver in my auto tests.
I defined a driver as:
<strong><em>Capybara.default_driver = :selenium</em></strong>
But it is impossible to use Selenium methods in usual way (like: <em>@driver.find_element(:xpath, ::Login_button).send_keys("MY_login")</em>).
I saw on some resources that it is possible to call Selenium methods using construction:
<strong><em>page.driver.browser</em></strong>
For instance: <em>element = page.driver.browser.find_element(:id, ell)</em>.
But error occurs that says that "<strong>page</strong>" is not defined method.</p>

<p>The question is how to use Selenium methods with defined Capybara driver?</p>

<p>May be it is necessary to define Capybara driver in another way in order to successfully use "<strong><em>page.driver.browser</em></strong>" construction?
Please provide little instance to see full picture.</p>