Explorar o código

Add exemption on BrowserVersion for chrome too

George S. Baugh %!s(int64=6) %!d(string=hai) anos
pai
achega
ae846364f0
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

@@ -1006,7 +1006,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') ) {
+    if ( $self->isa('Selenium::Firefox') || $self->isa('Selenium::Chrome') ) {
         if (   exists $args->{capabilities}
             && exists $args->{capabilities}->{alwaysMatch} )
         {