Procházet zdrojové kódy

Update EdgeDriver to be able to launch chrome based edge

George S. Baugh před 4 roky
rodič
revize
b92685715f
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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' => (
     is        => 'lazy',
     coerce    => \&coerce_simple_binary,
-    default   => sub { 'MicrosoftWebDriver.exe' },
+    default   => sub { 'msedgedriver.exe' },
     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 DEMOLISH
+=for Pod::Coverage oEMOLISH
 
 =head1 SYNOPSIS
 
@@ -1044,7 +1044,7 @@ sub _request_new_session {
       if $FORCE_WD2; #XXX 'secret' feature to help the legacy unit tests to work
 
     #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}
             && exists $args->{capabilities}->{alwaysMatch} )
         {