View
Posted almost 8 years ago by Henning Koch.

Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...

Posted almost 8 years ago by Henning Koch.

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

Posted over 1 year ago by Emanuel De.

We often use the Then console step from spreewald in combination with geordi vnc from geordi to debug tests within...

Posted over 1 year ago by Henning Koch. makandracards.com

In Spreewald 1.10.4+, nested patiently blocks are now patient. Here is an example: patiently do outer_code patiently do

Posted over 1 year ago by Natalie Krehan.

Form fields can be rendered as noneditable by setting the disabled or the readonly attribute. Be aware of the differences...

Posted over 8 years ago by Henning Koch. api.jquery.com

jQuery offers many different methods to move a selection through the DOM tree. These are the most important. $element.find(selector...

Posted over 5 years ago by Arne Hartherz. jacklmoore.com

Elements will not inherit their parent's opacity in IE for no good reason. This can lead to unexpected behaviour...

Posted over 1 year ago by Henning Koch.

If you want to make a screenshot of a website that works well in print or on a high-DPI...

Posted over 1 year ago by Arne Hartherz.

When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...

Posted over 6 years ago by Arne Hartherz.

Watch out when saying something like 1.year in Rails. The result is not a Fixnum and can cause unexpected errors...

Posted over 3 years ago by Henning Koch.

There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...

Posted over 1 year ago by Emanuel De.

If your Rails application is using Webpack you need to serve assets on the same host as you application runs...

Posted over 1 year ago by Emanuel De.

This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...

Posted almost 6 years ago by Tobias Kraze.

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

Posted over 1 year ago by Henning Koch.

This is painful. Consider using Microsoft Office or switching careers. If you need to write < 20 letters consider doing it...

Posted over 4 years ago by Judith Roth. api.rubyonrails.org

Since Rails 4.1 there is a preview-function to see what an e-mail will look like.

Posted over 8 years ago by Henning Koch.

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

Posted over 3 years ago by Dominik Schöler. stackoverflow.com

Some browsers define window.event, which will return a copy of the "current" event. However, this is not defined by the...

This website uses cookies to improve usability and analyze traffic.
Accept or learn more