Browse Source

Update EdgeDriver to be able to launch chrome based edge

George S. Baugh 4 years ago
parent
commit
b92685715f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      lib/Selenium/Edge.pm
  2. 2 2
      lib/Selenium/Remote/Driver.pm

+ 1 - 1
lib/Selenium/Edge.pm

@@ -52,7 +52,7 @@ anything, we'll try to find it on our own via L<File::Which/which>.
 has 'binary' => (
 has 'binary' => (
     is        => 'lazy',
     is        => 'lazy',
     coerce    => \&coerce_simple_binary,
     coerce    => \&coerce_simple_binary,
-    default   => sub { 'MicrosoftWebDriver.exe' },
+    default   => sub { 'msedgedriver.exe' },
     predicate => 1
     predicate => 1
 );
 );
 
 

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

@@ -53,7 +53,7 @@ our %CURRENT_ACTION_CHAIN = ( actions => [] );
 
 
 =for Pod::Coverage BUILD
 =for Pod::Coverage BUILD
 
 
-=for Pod::Coverage DEMOLISH
+=for Pod::Coverage oEMOLISH
 
 
 =head1 SYNOPSIS
 =head1 SYNOPSIS
 
 
@@ -1044,7 +1044,7 @@ sub _request_new_session {
       if $FORCE_WD2; #XXX 'secret' feature to help the legacy unit tests to work
       if $FORCE_WD2; #XXX 'secret' feature to help the legacy unit tests to work
 
 
     #Delete compatibility layer when using drivers directly
     #Delete compatibility layer when using drivers directly
-    if ( $self->isa('Selenium::Firefox') || $self->isa('Selenium::Chrome') ) {
+    if ( $self->isa('Selenium::Firefox') || $self->isa('Selenium::Chrome') || $self->isa('Selenium::Edge') ) {
         if (   exists $args->{capabilities}
         if (   exists $args->{capabilities}
             && exists $args->{capabilities}->{alwaysMatch} )
             && exists $args->{capabilities}->{alwaysMatch} )
         {
         {