I’m trying to use the find method to find an element based on the following:
id starts with ship_
and the data-coordinates attribute does not equal 0,0,0.
The css for the first part i have easily enough:
find('path[id^="ship_"]')
but i’m not sure how add the second condition.
If Capybara supports CSS3, you could try: