# but dom() inside of clicks_link still returns the original value When('I click the "$text" subnav link') do |text| # sneaky sneaky @dom = dom.at('#subnav') clicks_link text end