I'm having trouble clicking on a specific element within a table. There are multiple elements with the same class <span class="price">
, but I need to click on one that has a color property of color:#555
.
I attempted a few different methods without success:
1- browser.span(:class => 'price', visible: true ).click -- did not work
2- browser.span(:class => 'price', ).style(color: '#555').click -- undefined method click for string
Because the link's availability can vary, sometimes appearing gray and unclickable, is there an alternative approach to achieving this click?