Skip to content

Instantly share code, notes, and snippets.

View katmutua's full-sized avatar
:shipit:

Jackie katmutua

:shipit:
  • X
  • Canada
  • 05:37 (UTC -04:00)
View GitHub Profile
while read p; do
username=$(cut -f 1 -d "," <<<$p)
pline=$(grep $username accounts/accounts.rb -A1)
password=$(cut -f 4 -d " " <<<$pline)
password=${password:1:${#password}-3}
real_password=$(rake password[$username] | tail -1)
awk -F, "BEGIN { OFS=\",\" } { \$2=\"$real_password\"; print;}" <<<"$p"
done < template_file.csv
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')