Răsfoiți Sursa

Merge pull request #390 from ylavoie/firefox-get-status

Remove get /status restriction on firefox/geckodriver
George S. Baugh 7 ani în urmă
părinte
comite
4ceb66d57a
1 a modificat fișierele cu 3 adăugiri și 5 ștergeri
  1. 3 5
      lib/Selenium/Remote/Driver.pm

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

@@ -973,11 +973,9 @@ sub _request_new_session {
         }
     }
 
-    # geckodriver has not yet implemented the GET /status endpoint
-    # https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver/status
-    if (! $self->isa('Selenium::Firefox')) {
-        $self->remote_conn->check_status();
-    }
+    # Get actual status
+    $self->remote_conn->check_status();
+
     # command => 'newSession' to fool the tests of commands implemented
     # TODO: rewrite the testing better, this is so fragile.
     my $resource_new_session = {