2

I am trying to enter value to a textbox email that doesn't have any unique attribute value using Capybara.

How can I select an element without a unique class, label or attribute?

Alex
  • 878
  • 3
  • 16
  • 34
Poo M
  • 31
  • 3
  • 3
    There has to be something unique or there wouldn’t be a way to submit the field correctly. Please add the HTML form to your question so we can see what you’re dealing with – Thomas Walpole Jan 03 '20 at 17:05
  • 1
    Without something unique, you would have to find it relative to some other unique element. This will not be resilient to changes in the future though. – dansalmo Jan 03 '20 at 22:10

0 Answers0