I am trying to click on the button.
<input data-ember-action="797" value="Search Now" class="cta-1st clrboth primary search-button firepath-matching-node" type="button">
but it keep showing an error of not finding the element to click. it finds all the elements until the end but when it comes to "click" it throws an error. My code is like this:
@browser.div(:id=>'ember730').section(:class=>'tab-pane fade active in').form(:class=>'flight-search ').input(:class=>'cta-1st clrboth primary search-button').click
Am I missing something? I am using Watir
@browser.button(class: 'search-button').clickand then only add more specifics if needed. - Justin Ko:classkey has been deprecated. With the latest version (6.7.1 was released today), you would want to put the ones you care about into an array['cta-1st', 'clrboth', 'primary', 'search-button']. Also prefer the#buttonmethod over the generic#inputmethod - titusfortner@browser.button(class: 'search-button').lengthreturns? I would be willing to bet it is returning an array and you need to put@browser.button(class: 'search-button').first.click- Tall Paul