Main Avalanche Network server application. Built with Ruby on Rails.

link_steps.rb 738B

    When(/^I click in the link with id "(.*?)"$/) do |arg1| find(arg1).click end When(/^I click in the link with class "(.*?)"$/) do |arg1| first(arg1).click end When(/^I click in the link "(.*?)"$/) do |arg1| click_link arg1 end When(/^I click in the button "(.*?)"$/) do |arg1| click_button arg1 end Then(/^within "(.*?)" I click in the link "(.*?)"$/) do |arg1, arg2| within(arg1) do click_link(arg2) end end Then(/^within "(.*?)" I click in the button "(.*?)"$/) do |arg1, arg2| within(arg1) do click_button(arg2) end end Then(/^within the "(.*?)" number "(\d+)" I click in the link "(.*?)"$/) do |arg1, arg2, arg3| items = page.all(arg1) within(items[arg2.to_i - 1]) do click_link(arg3) end end