Prechádzať zdrojové kódy

add advice for older chromes

George S. Baugh 6 rokov pred
rodič
commit
4db681645b
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      lib/Selenium/Remote/Driver.pm

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

@@ -251,6 +251,11 @@ WD3 enabled server with chromedriver enabled.
 Also, if you instantiate the object in WC3 mode (which is the default), the remote driver will throw exceptions you have no choice but to catch,
 rather than falling back to JSONWire methods where applicable like geckodriver does.
 
+As of chrome 75 (and it's appropriate driver versions), the WC3 spec has finally been implemented.
+As such, to use chrome older than this, you will have to manually force on JSONWire mode:
+
+    $Selenium::Remote::Driver::FORCE_WD2=1;
+
 =head1 CONSTRUCTOR
 
 =head2 new