[Webkit-unassigned] [Bug 212368] New: safaridriver can not create safari session on real iPad device

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 26 00:13:31 PDT 2020


            Bug ID: 212368
           Summary: safaridriver can not create safari session on real
                    iPad device
           Product: WebKit
           Version: Safari 13
          Hardware: iPhone / iPad
                OS: macOS 10.15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: michael at perkhofer.at
                CC: bburg at apple.com

## The problem
- safaridriver very often not able to connect to mobileSafari on real iOS 13 device.
- It seems to work as described in https://webkit.org/blog/9395/webdriver-is-coming-to-safari-in-ios-13/ but when trying to run a 2nd test session, safaridriver doesnt seem to be able to connect do mobileSafari on the device. This seems to happen, if the 2nd session is not immediately started after the 1st one - mobileSafari seems to be suspended and safaridriver can not handle this situation.
- mobileSafari seems to be in kind of suspended mode after webdriver connection has been closed. Only solution, to make further connects, is manually killing mobileSafari via iOS app switcher.
- The issue seems to only exist on iPads and not on iPhones, where mobielSafari stays open after webdriver session has been closed.

## Steps to reproduce
- Use a real iPad connected via USB to a Mac with macOS 10.15:
1. Launch safaridriver
/Applications/Safari\ Technology\ Preview.app/Contents/MacOS/safaridriver --port 4444

2. curl by another terminal
curl -X POST \
  http://localhost:4444/session \
  -H 'Content-Type: application/json' \
  -d '{
  "capabilities": {
        "alwaysMatch": {
            "browserName": "Safari",
            "platformName": "iOS"

3. Then delete this session agin using DEL using the given ID. This works the first time, but repeating this procedure does not open mobileSafari again.
curl -X DELETE http://localhost:4444/session/GIVEN_SESSIONID_FROM_STEP_2
4. Repeate step 2-3.

## Actual response
    "value": {
        "error": "session not created",
        "message": "Could not create a session: The session timed out while connecting to a Safari instance.",
        "stacktrace": ""

## Environment
- iOS version: iOS13.5
- host machine version: 10.15.4
- safaridriver version: Included with Safari Technology Preview (Release 106, 15610.1.12.2)

## Note
- It is not possible to get around this issue. Only solution is to manually kill mobileSafari via App Switcher.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200526/10736088/attachment.htm>

More information about the webkit-unassigned mailing list