...this global option, and use the :visible option when calling page.find(...). This way the behavior is only changed for this one find and your step doesn't have confusing side...

Capybara has an option (Capybara.ignore_hidden_elements) to configure the default query behavior of finding nodes within the DOM. It's default value is false. That means that...

makandra dev

...directory like ~/bin/rubymine, and update that link whenever you update RubyMine. This has many benefits: A launcher pointing to ~/bin/rubymine/bin/rubymine.sh runs the recent version. No need to touch it.

makandra dev

Next time you have to do more than trivial CSS changes on a project, you probably want to have live...

...layout since such things are part of your application's logic -- and thus they belong into the corresponding model. How to Do it like this: In your migration, after adding...

...edit string fields, you probably want to strip the entered values (remove whitespace from beginning and end). The reason is that your users will copy + paste values from unholy places...

For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at the bottom of the HTML. This way, the page can...

For applications coming with lots of stylesheets and scripts, asset compilation might take quite long. This can be annoying when...

The classical scenario: There's a parent div element and you want to center some arbitrary child element vertically inside...

When you update your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests. For example, reading the browser console for errors no longer works, and...

stackoverflow.com

Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...

web.archive.org

When you style multiple adjacent block elements with float: left, they will be rendered next to each other similar to...

...that method now no longer returns a scope but its loaded target array. The best solution is to use the Memoizer gem instead. A workaround is to roll your own...

bevacqua.github.io

Datetime picker that offers: simple UI without a specific framework several of customization options allows custom date/time validations Localization happens...

github.com

No one wants to cry over regression issues in views; does testing HTML and CSS have to be such a...

Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...

Always use simply require 'spec_helper' If you mix it up like require 'spec_helper' require File.dirname(__FILE__) + '/../spec_helper'

A few releases back, Chrome started using a Material Design UI on desktop. If you don't like it (on...

makandra dev
makandracards.com

As it's quite hard to use a screen reader when you have never done so before, I added a...

makandracards.com

etag { flash.to_h } etag { I18n.locale } (could be left out if all URLs contain a locale fragment, but also doesn...

makandracards.com

ChromeDriver 135 started following the W3C spec more closely, which broke testing beforeunload confirmations again. To get working confirmations in a testing browser again, unhandled_prompt_behavior needs to be...

Best results in other decks

magentodevelop.blogspot.com

Uncaught TypeError: imagecopymerge(): Argument #9 ($pct) must be of type int, string given in /.../lib/Varien/Image/Adapter/Gd2.php:570 Stack trace: #0 /.../lib/Varien/Image/Adapter/Gd2.php...

...a Ruby on Rails application “booksandreviews.com” exists with three models: class Book < ActiveRecord::Base belongs_to :author has_many :reviews end class Author < ActiveRecord::Base has_many :books end

...Review < ActiveRecord::Base belongs_to :book end 1. Nested Queries Active Record’s where method returns an instance of ActiveRecord::Relation. These relations can be passed to other methods to...

Search in all decks