Public Notes by chase_ats Tagged #tips
Notes publicly shared by our members.
How do you apply the CSS element to image after checking the checkbox? If you add the class attribute for highlighting, I guess checking class attribute is the simplest way.
for example
browser.image.class_name =~ /foobar/
If using style attribute, I think you might need to check HTML itself, like
browser.image.html =~ /style=\"?foobar\"?/
#tips #ruby #watir #programming #pub
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
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
#tagging #productivity_procrastination #organization #productivity_fun #tips #discussions #social_bookmarking #pub
#dev #sql #databases #DBA #tidbits #tips #questions_and_answers #%stack_overflow #pub