Explorar el Código

Fix #445: Advise chromedriver users they gotta use webelements now

George S. Baugh hace 5 años
padre
commit
1b40f6642f
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      lib/Selenium/Remote/Driver.pm

+ 5 - 0
lib/Selenium/Remote/Driver.pm

@@ -2287,6 +2287,10 @@ sub available_engines {
     or
     $driver->switch_to_frame($driver->find_element('iframe', 'tag_name'));
 
+=head3 COMPATIBILITY
+
+Chromedriver will vomit if you pass anything but a webElement, so you probably should do that from now on.
+
 =cut
 
 sub switch_to_frame {
@@ -2297,6 +2301,7 @@ sub switch_to_frame {
     $id = ( defined $id ) ? $id : $json_null;
 
     my $res = { 'command' => 'switchToFrame' };
+
     if ( ref $id eq $self->webelement_class ) {
         if ( $self->{is_wd3} ) {
             $params =