diff --git a/WebDriver/Driver.php b/WebDriver/Driver.php index 84b7571..8d5be3a 100644 --- a/WebDriver/Driver.php +++ b/WebDriver/Driver.php @@ -823,9 +823,9 @@ public function set_browserstack_status($status, $reason = "") { public function set_testingbot_info($field, $value) { if ($this->running_at_testingbot()) { $payload = "test[$field]=$value"; + $url_parts = parse_url($this->server_url); + WebDriver::Curl("PUT", "https://" . $url_parts['user'] . "api.testingbot.com/v2/tests/" . $this->session_id, $payload); } - $url_parts = parse_url($this->server_url); - WebDriver::Curl("PUT", "https://" . $url_parts['user'] . "api.testingbot.com/v2/tests/" . $this->session_id, $payload); } /********************************************************************