这是我的部分观点...我如何使用水豚瞄准<input type =“image”....>?
我希望能够定位到该输入,是重定向到另一个网址。我怎样才能做到这一点 ?请帮忙
下面是我尝试过的一些东西。
describe "landings", :type => :feature do
it "index: get all params" do
visit '/sample_page?'
expect(page).to have_no_content 'Sample text'
expect(page).to have_no_content 'Example'
expect(page).to have_no_content("Some Content")
expect(page).to have_css("img", :maximum => 1)
# expect(page).to have_css("input", :id => "sampleID")
# get :survey_link
# expect(response).to render_template(:survey_link) #
# find("#clickAction").click
# input[@type='image']
# click_input
#
# visit 'https://url........'
末 结束
提供一些更多的描述。你想要达到什么目的? –