From 50d5bc08a72d2628872626aec73225c4cb34bddb Mon Sep 17 00:00:00 2001 From: Alvaro Laserna Date: Thu, 16 Nov 2023 08:44:50 +0000 Subject: [PATCH] fix url base path for appium 2.x version --- lib/core/appium_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/appium_server.rb b/lib/core/appium_server.rb index 2186e588..b92767d1 100644 --- a/lib/core/appium_server.rb +++ b/lib/core/appium_server.rb @@ -21,7 +21,7 @@ def start opened = `netstat -anp tcp | #{grep_cmd} "#{@port}"`.include?("LISTEN") end - spawn("appium -p #{@port} >> #{folder}/#{@udid}.log 2>&1") + spawn("appium --base-path=/wd/hub -p #{@port} >> #{folder}/#{@udid}.log 2>&1") opened = false log_info("Role '#{@role}': Starting Appium server on port #{@port} ", no_date=false, _print=true)