Replace selenium with selenium-webdriver
Update Session.new calls with headless firefox (:selenium_headless) module
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user