|
|
@@ -486,8 +486,7 @@ has 'firefox_profile' => (
|
|
|
|
|
|
return $profile;
|
|
|
},
|
|
|
- predicate => 'has_firefox_profile',
|
|
|
- clearer => 1
|
|
|
+ predicate => 'has_firefox_profile'
|
|
|
);
|
|
|
|
|
|
has 'desired_capabilities' => (
|
|
|
@@ -674,7 +673,12 @@ sub new_desired_session {
|
|
|
|
|
|
sub _request_new_session {
|
|
|
my ( $self, $args ) = @_;
|
|
|
- $self->remote_conn->check_status();
|
|
|
+
|
|
|
+ # 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();
|
|
|
+ }
|
|
|
# command => 'newSession' to fool the tests of commands implemented
|
|
|
# TODO: rewrite the testing better, this is so fragile.
|
|
|
my $resource_new_session = {
|