Public Notes by chase_ats Tagged #good_to_know
Notes publicly shared by our members.
http://stackoverflow.com/questions/2733080/does-watirs-browser-text-include-count-text-inside-invisible-divs-if-so-how/2783138#2783138 Does watir's browser.text.include.
text_from_all_my_visible_divs = br.div(:id, 'divs I care about').divs.select do |div| text_i_care_about(div) && div.visible? end def text_i_care_about(div) div.text =~ /regexp/ end#Watir #tips #code #references #good_to_know #pub
Idiomatic object creation in ruby - Stack Overflow stackoverflow.com
#Ruby #references #tidbits #good_to_know #boilerplates #pub
html - Watir: How do I find an element where the class of that element and the class of one of its parents identifies it? - Stack Overflow stackoverflow.com
#Watir #advanced_basics #good_to_know #code #pub
The OAuth Bible oauthbible.com
"I tried to make this as understandable as possible for any party reading it which means that the wording, references, and terminology used may not reflect that of a technical paper or resource. Excuse me if you may for I wish all to understand this, and not just those with a degree in understanding technical jargon." #oauth #auth #references #summaries #info #good_to_know #web_development #development #pub
git - pull/push from multiple remote locations - Stack Overflow stackoverflow.com
"This something I’ve been using for quite a while without bad consequences and suggested by Linus Torvalds on the git mailing list. araqnid’s solution is the proper one for bringing code into your repository… but when you, like me, have multiple equivalent authoritative upstreams (I keep some of my more critical projects cloned to both a private upstream, GitHub, and Codaset), it can be a pain to push changes to each one, every day. Long story short, git remote add all of your remotes individually… and then git config -e and add a merged‐remote. Assuming you have this repository config: [remote "GitHub"] url = [email protected]:elliottcable/Paws.o.git fetch = +refs/heads/*:refs/remotes/GitHub/* [branch "Master"] remote = GitHub merge = refs/heads/Master [remote "Codaset"] url = [email protected]:elliottcable/paws-o.git fetch = +refs/heads/*:refs/remotes/Codaset/* [remote "Paws"] url = [email protected]:Paws/Paws.o.git fetch = +refs/heads/*:refs/remotes/Paws/* … to create a merged‐remote for "Paws" and "Codaset", I can add the following after all of those: [remote "Origin"] url = [email protected]:Paws/Paws.o.git url = [email protected]:elliottcable/paws-o.git Once I’ve done this, when I git push Origin Master, it will push to both Paws/Master and Codaset/Master sequentially, making life a little easier." #@to_do #simple #git #hacks #good_to_know #version_control #pub
ruby - How to set WATIR focus on new window - Stack Overflow stackoverflow.com
#Watir #tidbits #good_to_know #references #pub
ruby - Is there a way to use watir to open a link in a new tab or window in firefox - Stack Overflow stackoverflow.com
#Watir #tidbits #good_to_know #pub