瀏覽代碼

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

George S. Baugh 5 年之前
父節點
當前提交
1b40f6642f
共有 1 個文件被更改,包括 5 次插入0 次删除
  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 =