I fail to run widows appium sample test
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
I downloaded every item nessesery, am running the windows application driver and trying to run the up to date sample UI tests.
WAD produces this:
```POST /session HTTP/1.1
Accept: application/json; charset=utf-8
Content-Length: 143
Content-Type: application/json; charset=utf-8
Host: 127.0.0.1:4723
User-Agent: selenium/4.17.0 (.net windows)
X-Idempotency-Key: 40256989-53a1-4aaf-9c68-867e94fd5e4a
{"capabilities":{"firstMatch":[{"platformName":"Windows","appium:app":"com.companyname.basicappiumsample","appium:automationName":"windows"}]}}
HTTP/1.1 400 Bad Request
Content-Length: 141
Content-Type: application/json
{"status":100,"value":{"error":"invalid argument","message":"Bad capabilities. Specify either app or appTopLevelWindow to create a session"}}
```
I get this error from maui-samples\9.0\UITesting\BasicAppiumNunitSample\UITests.Windows\AppiumSetup.cs:line 34
`OpenQA.Selenium.WebDriverArgumentException: 'Bad capabilities. Specify either app or appTopLevelWindow to create a session'`
What am I doing wrong? Might the sample app be broken?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at maui-samples\9.0\UITesting\BasicAppiumNunitSample\UITests.Windows\AppiumSetup.cs line 34 and inspect how the Windows Appium session capabilities are configured. Reproduce the POST /session request with the current sample and compare it with the Windows Application Driver error. Done means the sample creates a session successfully and its UI tests run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100