Debugging code in test automation

From Test Automation Wiki
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.