From ceebee3a5675c348ff1132ef1ed20c056df404d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 4 Sep 2023 16:46:20 +0200 Subject: [PATCH] Look for "login-server.py" next to "logintest.py" --- appiumtests/logintest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appiumtests/logintest.py b/appiumtests/logintest.py index 1925998bd..be64866bf 100755 --- a/appiumtests/logintest.py +++ b/appiumtests/logintest.py @@ -8,6 +8,7 @@ import unittest from appium import webdriver from appium.webdriver.common.appiumby import AppiumBy from selenium.webdriver.support.ui import WebDriverWait +import os import time import subprocess import sys @@ -21,7 +22,7 @@ class LoginTest(unittest.TestCase): self.driver = webdriver.Remote( command_executor='http://127.0.0.1:4723', desired_capabilities=desired_caps) - subprocess.Popen([sys.executable, "login-server.py"]) + subprocess.Popen([sys.executable, os.path.join(os.path.dirname(__file__), "login-server.py")]) def setUp(self): pass