Replace selenium with selenium-webdriver

Update Session.new calls with headless firefox (:selenium_headless) module
This commit is contained in:
aussieklutz
2019-05-02 09:55:01 +10:00
committed by GitHub
parent 64d5638a81
commit b8fe5f1b80

View File

@@ -12,7 +12,7 @@ class TC_Login < Test::Unit::TestCase
include RSpec::Matchers
def test_log_in
session = Capybara::Session.new(:selenium)
session = Capybara::Session.new(:selenium_headless)
session.visit(ATTACK_URL)
sleep 2.0
BeefTest.save_screenshot(session)
@@ -82,7 +82,7 @@ class TC_Login < Test::Unit::TestCase
attacker.should have_content('Details')
attacker.should have_content('Commands')
attacker.should have_content('Rider')
# attacker.should have_content('Rider') # Old functionality
BeefTest.save_screenshot(attacker)
BeefTest.save_screenshot(victim)