spriteCloud / lapis-lazuli

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

LL is not overwriting capabilities and starts the same browser unless I quit irb #102

Open mark0203 opened 6 years ago

mark0203 commented 6 years ago

Actual irb

require 'lapis_lazuli'
include LapisLazuli

# Start a FF session
browser :firefox
browser.goto "https://www.google.nl"
browser.quit

# Now try to start a Chrome session
browser :chrome

You will notice that not Chrome but FF will be started. I need to quit irb and start it again to be able to start this new browser session.

Expected I expected to be able to start the Chrome session when I've closed the Firefox session. Just like I can do with Watir

require 'watir'

# Start FF  session
browser = Watir::Browser.new :firefox
browser.goto "https://www.google.nl"
browser.quit

# Start Chrome browser session
browser = Watir::Browser.new :chrome
browser.goto "https://www.google.nl"
browser.quit