Ver código fonte

Add exemption on BrowserVersion for chrome too

George S. Baugh 6 anos atrás
pai
commit
ae846364f0
1 arquivos alterados com 1 adições e 1 exclusões
  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} )
         {