Live data from Hacker News

WebDriver Support in Safari 10

webkit.org

1–10 of 37 posts

Re: WebDriver Support in Safari 10

#3
Part of me is thrilled by anything that makes validation easier. Part of me is frightened by the expansion of the attack surface of the browser, particularly given how Apple has been losing their quality edge of late.

Re: WebDriver Support in Safari 10

#4

Part of me is thrilled by anything that makes validation easier. Part of me is frightened by the expansion of the attack surface of the browser, particularly given how Apple has been losing their quality edge of late.

The blog post notes that the Safari that is driven by the automation cannot interact with other windows or user preferences. It also requires that the user has had the "enable remote automation" enablex, which is only possible if you have enabled the developer menu bar.

In addition, automation windows are shown with a different coloured bar and have a "pane" over the window so that it won't receive stray mouse or keyboard input.

Re: WebDriver Support in Safari 10

#6
This looks really great. Baking in support for test automation seems like a no-brainer and a welcome step forward for web development.

Are any other major browsers taking a similar approach to Safari in terms of native WebDriver support? I saw this Microsoft blog [1] on Edge support of WebDriver, but it's not clear to me what approach they have taken (you still need to download a separate server for instance).

Only one Safari browser instance can be running at any given time, and only one WebDriver session can be attached to the browser instance at a time.

One downside to this approach is that it limits the ability to parallelize tests on a single machine for efficiency purposes.

1. https://blogs.windows.com/msedgedev/2015/07/23/bringing-auto...

Re: WebDriver Support in Safari 10

#7
post #6

This looks really great. Baking in support for test automation seems like a no-brainer and a welcome step forward for web development. Are any other major browsers taking a similar approach to Safari in terms of native WebDriver support? I saw this Microsoft blog [1] on Edge support of WebDriver, but it's not clear to me what approach they have taken (you still need to download a separate server for instance). Only o…

Does that limit multiple tabs/windows? I would assume that a browser instance is a collection of multiple window contexts.

Re: WebDriver Support in Safari 10

#8
post #5

This is fantastic news! The blog post doesn't mention iOS. Does anybody here know whether iOS Safari 10 will also support Webdriver?

According to the docs: yes. https://developer.apple.com/library/prerelease/content/relea...

Where are you seeing that? I'm seeing:

>Safari on OS X supports WebDriver, which lets you automate web-content testing. It provides a set of interfaces to manipulate DOM elements and control the browser’s behavior. You can enable Remote Automation in the Develop menu and then launch the server using /usr/bin/safaridriver. For information about library integrations as they become available, see the information about Selenium WebDriver.

Notably, the "on OS X" bit. (Shouldn't that be on macOS? I thought "OS X" was done for!) Equally, you obviously can't launch the server using /usr/bin/safaridriver on iOS.

Re: WebDriver Support in Safari 10

#9
post #5

This is fantastic news! The blog post doesn't mention iOS. Does anybody here know whether iOS Safari 10 will also support Webdriver?

According to the docs: yes. https://developer.apple.com/library/prerelease/content/relea...

From the link you shared:

> Safari on _OS X_ supports WebDriver, which lets you automate web-content testing.

I don't see any mention of iOS in relation to WebDriver.

Post reply on HN