Windows.startApplication URL address problem

Hi

How to set the URL address on local machine for test cases?

I’m trying to run windows app tests, i can open apps with “windows recorder” or with “spy window objects” but i cannot from test cases, because i don’t know how to set the address. In Project → Settings → Desired Capabilities → Windows → WinAppDriver URL i have set the right URL, which works fine in windows recorder and spy, but if i run my test case the URL is still the default (http://127.0.0.1:4723), which will throw this error:

ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Connection refused: connect
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘MIRKO’, ip: ‘192.168.3.102’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_282’
Driver info: driver.version: WindowsDriver (Root cause: org.openqa.selenium.WebDriverException: Connection refused: connect
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘MIRKO’, ip: ‘192.168.3.102’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_282’
Driver info: driver.version: WindowsDriver

Thanks in advance

1 Like

@mrwolfknife

You need to install and start WinAppDriver first. http://127.0.0.1:4723 is the address of WinAppDriver server URL.
Please refer to: Set up WinAppDriver | Katalon Docs