This is very incomplete.
- add
class="fade"
to alert components to give them a sleek fade effect while dismissing the alert box
component { | |
// properties | |
variables.a_property = ''; | |
// init | |
public any function init( | |
String an_argument | |
){ | |
variables.a_property = arguments.an_argument; | |
return this; |
Ahoy Mac fans! One really great tool for automating repetitive tasks on my computer is Keyboard Mastro. I normally use it to automate inputting text (things like email signatures and addresses) but today I dug a bit deeper and in an effort to automate the tedious task of clicking on a series of links that I have to click each time that I want to fetch new POP email from my external accounts.
Before you dive in note that this will only work if you configure Safari to allow remote automation.
Set value Select tab
to 1
Currently Learning | |
* Angular | |
* CompTIA A+ (my stepson is studying so I figured that I'd study with him) |
<cfscript> | |
// declare & set vars | |
var batch = getBatches( | |
filterStruct = { | |
only_get_next_incomplete_batch_for_this_week = true | |
} | |
); | |
<cfscript> | |
key = 'yer mom'; | |
secret = 'smells'; | |
encrypted=encrypt(secret, key, "CFMX_COMPAT", "hex"); | |
decrypted=decrypt(encrypted, key, "CFMX_COMPAT", "hex"); | |
WriteDump([ | |
'key: #key#', | |
'secret: #secret#', | |
'encrypted: #encrypted#', | |
'decrypted: #decrypted#', |
#Run all tests for this project | |
bundle exec rspec | |
#run single test | |
bundle exec rspec path/to/spec/file/thingie_spec.rb | |
#Useful switches | |
bundle exec rspec --format documentation (more output context) | |
bundle exec rspec --order random (tests should be able to pass in any order) | |
bundle exec rspec --profile (shows you slowest tests) |
a_popup_window = window_opened_by do | |
# click_button 'Open Login Window', which opens a popup | |
the_xpath = "//a[@id='open_popup_link']" | |
find(:xpath, the_xpath).click | |
end | |
within_window(a_popup_window) do | |
# are we focused on the popup? | |
expect(page).to have_selector(:xpath, "//h1[contains(text(), 'Text that appears in the H1 Tag')]") | |
popup_page_instance = PopupPageObj.new |
# does button exist and is enabled | |
expect(page).to have_button('Update') | |
# does button exist and is disabled | |
expect(page).to have_button('Update', disabled: true) | |
# does h1 contain both of the specified strings | |
expect(page).to have_selector(:xpath, "//h1[contains(text(), 'New') and contains(text(), 'Person')]") | |
# does an input field with id of dataFirstName.1 exist |
require 'spec_helper' | |
RSpec.feature 'TODO: describe your spec here' do | |
before(:each) do | |
@wait_time = Capybara.default_max_wait_time | |
Capybara.default_max_wait_time = 10 | |
end | |
scenario 'TODO: describe your scenario here.', :js do | |
# TODO: your logic goes here |