public function getCloudService(): string
    {
        // If cloud service value is not yet initialized, attempt to connect to the server first
        if ($this->cloudService === null) {
            if (!$this->isSeleniumServer()) {
                throw new \RuntimeException(sprintf('Unable to connect to remote server: %s', $this->getLastError()));
            }
        }

        return $this->cloudService;
    }