How to find a variable with rspec tests using page.find
问题 I have a test case, most of my other pages have at least one field that is just straight text and can be found using: page.find("tr", text: "What I filled in").find("a.tick").click This page all of the options are drop down selects, so how do I find a variable? The rest of the syntax looks like this: it "edits person job and redirects to index" do expect(p = FactoryGirl.create(:person)).to be_valid() expect(j = FactoryGirl.create(:job)).to be_valid() visit new_job_path select p.name, from: