waitForSelector passes, but assertExists fails for the same selector
When I call the following function, waitForSelector passes for 'selector', but assertExists fails for the same selector. How is it possible? casper.waitForSelector(selector, function() { casper.test.assertExists(selector, sectionName + " opened up successfully."); }, function() { casper.test.fail(sectionName + " did not load in given time"); }, max_timeout); Here is a complete example to reproduce the issue with an :nth-child selector. This is a known bug (see #11632 , #11737 ) in the Qt4 fork of WebKit (from 2010). It happens when :nth-child() or :nth-of-type() CSS3 selectors are used. The