This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# this file fixes links inside html pages to other notion pages | |
# E.g.: | |
# <a href="Notion-aaaaaaaa-bbbb-cccc-dddd-bbbbbbbbbbbbb">xxx</a> | |
# into | |
# <a href="aaaaaaaa-bbbb-cccc-dddd-bbbbbbbbbbbbb.html">xxx</a> | |
require 'bundler/inline' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fill_stripe_elements(card) | |
using_wait_time(15) { within_frame('stripeField_card_element0') do | |
card.to_s.chars.each do |piece| | |
find_field('cardnumber').send_keys(piece) | |
end | |
find_field('exp-date').send_keys("0122") | |
find_field('cvc').send_keys '123' | |
find_field('postal').send_keys '19335' | |
end } |