Debugging code in test automation

From Test Automation Wiki
Revision as of 14:53, 23 May 2017 by Gijsp (talk | contribs) (Created page with " <p>Start by writing <code>irb</code> in your command line while you're in the directory of your project. Then continue writing the following:</p> <source> require 'lapis_laz...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Start by writing irb in your command line while you're in the directory of your project. Then continue writing the following:

require 'lapis_lazuli'
include LapisLazuli
browser.goto 'google.com'

The browser will open and navigate to Google. From this point you can simply use the browser with you mouse and keyboard and navigate to the point which you're trying to debug. Then you can simply go back to the console and write whatever command you want to test.