InternetExplorer.pm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package Selenium::InternetExplorer;
  2. # ABSTRACT: A convenience package for creating a IE instance
  3. use Moo;
  4. extends 'Selenium::Remote::Driver';
  5. =head1 SYNOPSIS
  6. my $driver = Selenium::InternetExplorer->new;
  7. # when you're done
  8. $driver->shutdown_binary;
  9. =cut
  10. has '+browser_name' => (
  11. is => 'ro',
  12. default => sub { 'internet_explorer' }
  13. );
  14. has '+platform' => (
  15. is => 'ro',
  16. default => sub { 'WINDOWS' }
  17. );
  18. =method shutdown_binary
  19. Call this method instead of L<Selenium::Remote::Driver/quit> to ensure
  20. that the binary executable is also closed, instead of simply closing
  21. the browser itself. If the browser is still around, it will call
  22. C<quit> for you. After that, it will try to shutdown the browser
  23. binary by making a GET to /shutdown and on Windows, it will attempt to
  24. do a C<taskkill> on the binary CMD window.
  25. $self->shutdown_binary;
  26. It doesn't take any arguments, and it doesn't return anything.
  27. We do our best to call this when the C<$driver> option goes out of
  28. scope, but if that happens during global destruction, there's nothing
  29. we can do.
  30. =cut
  31. 1;