Explorar o código

Revert "Remove redundant extra capabilities default checking"

This reverts commit 959f599c5520e5a7ba95c45cdaefbcf6e72df219.
Daniel Gempesaw %!s(int64=11) %!d(string=hai) anos
pai
achega
2040c60017
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Selenium/Remote/Driver.pm

+ 1 - 1
lib/Selenium/Remote/Driver.pm

@@ -365,7 +365,7 @@ sub _execute_command {
 # desired capabilities on the server.
 sub new_session {
     my ( $self, $extra_capabilities ) = @_;
-
+    $extra_capabilities ||= {};
     my $args = {
         'desiredCapabilities' => {
             'browserName'       => $self->browser_name,