How to make automation more stable
By Jiazhen Xie | 13 May 2014
Tags: testing, automation, qa, best-practices
Timeout, page is not completely loaded yet .. This is a really big issue in automation test. Therefore, we will need some techniques to help driver to deal with it. So we will be able to increase the tests stability. Use headless driver poltergeist 1. Add to gemfile 2. Do in terminal (assume that using mac ox) 3. Add the following to spec_helper (resolve ) Selectors 1. Capybara is using CSS by default 2. Use xpath find(:xpath, '//ul/li').text 3. In XPath the expression, // means "anywhere in the...
← Back to Home