1
0

firefox.test 409 B

12345678910111213141516
  1. use strict;
  2. use warnings;
  3. use Selenium::Firefox;
  4. use Test::More tests => 2;
  5. use Test::Fatal;
  6. my $driver;
  7. is( exception { $driver = Selenium::Firefox->new(
  8. extra_capabilities => {
  9. 'moz:firefoxOptions' => {
  10. args => [ '-headless' ],
  11. },
  12. },
  13. ); }, undef, "can spawn new Selenium::Firefox");
  14. is( exception { $driver->shutdown_binary; }, undef, "can shutdown binary correctly");