spriteCloud / lapis-lazuli

Cucumber helper functions and scaffolding for easier test automation suite development.
Other
7 stars 7 forks source link

browser cannot be started when irb is started from a folder that does not contain a config.yml file #100

Open mark0203 opened 6 years ago

mark0203 commented 6 years ago

LL version 2.1.3

Precondition

Make sure you have the firefox driver in your ruby bin folder and the bin folder should be in the PATH variable of your system.

Steps

  1. Open CMD >> cd c:\ >> mkdir testfolder (create a new folder) >> cd testfolder >> irb (start irb in this folder)
  2. Start up a browser (in my case FF)
    require 'lapis_lazuli'
    include LapisLazuli
    browser :firefox

Actual

I cannot start the browser from this when irb is started from this folder image

Expected

Expected this to work since with previous versions of lapis_lazuli this was possible and also with watir this is possible

browser = Watir::Browser.new :firefox
=> #<Watir::Browser:0x8d6fde10 url="about:blank" title="">
mark0203 commented 6 years ago

Workaround: Make sure you have a lapis_lazuli project folder (in cmd type lapis_lazuli create <name_of_the_project> if you don't), navigate to that folder en then start IRB from there.