[Webkit-unassigned] [Bug 252014] New: Web Inspector: SafariDriver times out when connecting iOS Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 9 14:40:00 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=252014

            Bug ID: 252014
           Summary: Web Inspector: SafariDriver times out when connecting
                    iOS Safari
           Product: WebKit
           Version: Safari 16
          Hardware: iPhone / iPad
                OS: iOS 16
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: w0nka at mac.com
                CC: bburg at apple.com

Summary
SafariDriver times out when connecting to iOS Safari. 

Reproduction Steps
0. Make sure Remote Automation is enabled in iOS Safari Settings
1. Start safari driver in terminal with the following command: `safaridriver -p 4444`
2. Create a session using the following curl command:

```
curl --location --request POST '127.0.0.1:4444/session' \
--header 'Content-Type: application/json' \
--data-raw '{
    "capabilities": {
        "firstMatch": [{
            "browserName": "Safari",
            "platformName": "iOS"  
        }],
    }
}'
```

Expected Result
A webdriver session is returned.

Actual Result
The request times out with the following body.

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

Platform Details
iPhone 11 running iOS 16.3 tethered to a 2021 MacBook Pro running macOS Ventura 13.2. 

Other Notes
The same curl command successfully creates a webdriver session when targeting macOS Safari.
```
curl --location --request POST '127.0.0.1:4444/session' \
--header 'Content-Type: application/json' \
--data-raw '{
    "capabilities": {
        "firstMatch": [{
            "browserName": "Safari",
            "platformName": "macOS"  
        }],
    }
}'
```

-- 
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/20230209/fe01ef16/attachment.htm>


More information about the webkit-unassigned mailing list