title: Undefined method 'click' - Webdriver
body: <p>I'm learning test automation. I'm using the 'cucumber', 'rspec', 'selenium-web driver' framework in Ruby language. In the tests, I was able to perform almost every step. An error occurred when automating the click of a button.</p>
  
  <pre><code>Step definitions:
      Quando(/^clicar o botão "([^"]*)"$/) do |botaoSave|
   # @navegador.find_elements(:xpath, "//*[@id='SAVE']").trigger("click")
    @navegador.find_elements(:xpath, "//*[@id='SAVE']").click
  end
  </code></pre>
  
  <p>Error Message Displayed:</p>
  
  <pre><code> E clicar o botão "SAVE"                                  # features/step_definitions/criarConta.rb:92
        undefined method `click' for #&lt;Array:0x00000002847680&gt; (NoMethodError)
        ./features/step_definitions/criarConta.rb:94:in `/^clicar o botão "([^"]*)"$/'
        features/criarConta.feature:30:in `E clicar o botão "SAVE"'
      Então a conta será cadastrada corretamente               # features/criarConta.feature:31
  
  Failing Scenarios:
  cucumber features/criarConta.feature:7 # Cenário: Cadastrando uma conta
  
  1 scenario (1 failed)
  23 steps (1 failed, 1 undefined, 21 passed)
  </code></pre>