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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 31 07:03:18 PDT 2020


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

Shi Ling <shiling.tai at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shiling.tai at gmail.com

--- Comment #2 from Shi Ling <shiling.tai at gmail.com> ---
I ran into the same problem trying to run safaridriver with a real iPad device.

But I managed to get it to work after reading the manual from `man safaridriver` and finding out that it's necessary to set `safari:deviceType` as `ipad` as one of the capabilities when starting a session.

Try this:
```
curl -X POST \
  http://localhost:4444/session \
  -H 'Content-Type: application/json' \
  -d '{
  "capabilities": {
        "alwaysMatch": {
            "safari:deviceType": "iPad"
            "browserName": "Safari",
            "platformName": "iOS"
        }
    }
}'
```

You will also need to enable "Safari > Advanced > Web Inspector" on the iPad.

Should have been mentioned in the https://webkit.org/blog/9395/webdriver-is-coming-to-safari-in-ios-13/ blogpost though.

-- 
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/20200531/5fa70957/attachment.htm>


More information about the webkit-unassigned mailing list