Live data from Hacker News

WebDriver Support in Safari 10

webkit.org

21–30 of 37 posts

Re: WebDriver Support in Safari 10

#21
post #16

Earlier quoted context omitted.

Are you by any chance leaving Google Docs pages open for a long time? Safari runs great on my machine, with windows and tabs open for weeks at a time, and the only problem I ever have is with Google Docs, because Google Docs is a gigantic memory hog. If I leave a Google Docs page open for a day, it usually ends up consuming several gigabytes of memory all on its own. For a company whose focus is the web, I don't know…

Negative on Google Docs.

I don't see this either, but I don't have Flash installed. Could that be the culprit?

Re: WebDriver Support in Safari 10

#22
post #19
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…

"Are there any other major browsers taking a similar approach to Safari in terms of native WebDriver support?" Let me tell you about the "world domination plan" for the Selenium project. In the beginning of the project, no browser had a good automation story. It was a constant battle to catch-up and fix things every time a new browser version came out. With Selenium 2, in addition to merging in WebDriver, the grand s…

I wonder... Boss - "I see you expensed a Tesla" Me - "Yes, its for browser testing..."

Re: WebDriver Support in Safari 10

#23
post #19

Earlier quoted context omitted.

"Are there any other major browsers taking a similar approach to Safari in terms of native WebDriver support?" Let me tell you about the "world domination plan" for the Selenium project. In the beginning of the project, no browser had a good automation story. It was a constant battle to catch-up and fix things every time a new browser version came out. With Selenium 2, in addition to merging in WebDriver, the grand s…

I wonder... Boss - "I see you expensed a Tesla" Me - "Yes, its for browser testing..."

You kid, but at some point over the years, I had that same epiphany: If you want a built-in justification to play with any new toy, pursue a career in test automation! (I don't have a Tesla, yet, but I'd be happy to be invited over to the test track to talk shop... But seriously folks... I'm very curious how they test the software running on their dashboard and center console.)

Re: WebDriver Support in Safari 10

#24

Earlier quoted context omitted.

For me, Safari runs for weeks at a time with several hundred tabs open. Indeed, Safari is the only browser that doesn’t render my machine unusable under such use. (Both Chrome and Firefox seem to consume dramatically more CPU and memory for the same load.) What kind of situation are you running into where it stops working after an hour? How much memory do you have on your machine?

2008 MacPro 2 x 2.8Ghz Quad-Core Xeon , 28GB RAM, drives are SSD. Just keep tabs open, they eventually start chewing up hundreds and hundreds of MB of ram each, and slowly grinds itself into the ground. Relaunch, it's snappy again.

I wonder if it's something those sites are doing in JavaScript, because I have the same experience as the other poster. I keep tabs in Safari open for weeks at a time without any issue or noticeable memory increase.

However, I do know there are a handful of web app type things (Google calendar and possibly Gmail are coming to my mind) that seem to leak memory and cause issues if left open.

Edit: eridius mentioned Google Docs. I'm pretty sure that's what I was thinking of.

Re: WebDriver Support in Safari 10

#25
post #19

Earlier quoted context omitted.

"Are there any other major browsers taking a similar approach to Safari in terms of native WebDriver support?" Let me tell you about the "world domination plan" for the Selenium project. In the beginning of the project, no browser had a good automation story. It was a constant battle to catch-up and fix things every time a new browser version came out. With Selenium 2, in addition to merging in WebDriver, the grand s…

I wonder... Boss - "I see you expensed a Tesla" Me - "Yes, its for browser testing..."

"But couldn't you run it in a VM?" ;-)

Then again, I can't actually find a VM for QtCarBrowser... short of downloading an old version of QtWeb presumably...

Re: WebDriver Support in Safari 10

#26
post #23

Earlier quoted context omitted.

I wonder... Boss - "I see you expensed a Tesla" Me - "Yes, its for browser testing..."

You kid, but at some point over the years, I had that same epiphany: If you want a built-in justification to play with any new toy, pursue a career in test automation! (I don't have a Tesla, yet, but I'd be happy to be invited over to the test track to talk shop... But seriously folks... I'm very curious how they test the software running on their dashboard and center console.)

Google's advice was always emulation--the tests running on dozens of Dell servers were faster and more reliable at bug hunting than physical hardware. Obviously there are limits, but the advice in 2013 was to prioritise automated tests in simulators instead of on real devices. Note the emphasis on automation, though -- you can totally expense that Tesla for the manual/acceptance testing ;-)

Re: WebDriver Support in Safari 10

#27

Earlier quoted context omitted.

I wonder... Boss - "I see you expensed a Tesla" Me - "Yes, its for browser testing..."

"But couldn't you run it in a VM?" ;-) Then again, I can't actually find a VM for QtCarBrowser... short of downloading an old version of QtWeb presumably...

This is why there's a market for robots for testing -- real robots hitting real buttons. Especially in the automobile industry, no company wants to be hauled in front of the oversight committee in Congress after some horrible accident and when asked how they tested everything, they're only able to say "Well, all the tests passed in the simulator, so we went straight to production..."

Re: WebDriver Support in Safari 10

#29
post #16

Now if we can only get tabs to suspend themselves to free up RAM. Safari is awesome to work with, for the first hour.

Are you by any chance leaving Google Docs pages open for a long time? Safari runs great on my machine, with windows and tabs open for weeks at a time, and the only problem I ever have is with Google Docs, because Google Docs is a gigantic memory hog. If I leave a Google Docs page open for a day, it usually ends up consuming several gigabytes of memory all on its own. For a company whose focus is the web, I don't know…

I have the same Google Docs issue; it can bring my machine to its knees. I open anything Google in Chrome, and the rest of the web in Safari. Without Docs, Safari is as solid as a rock. Google Docs seems to run fine in Chrome.

Re: WebDriver Support in Safari 10

#30
post #5

Earlier quoted context omitted.

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 S…

From article: "Starting with Safari 10 on OS X El Capitan and macOS Sierra, Safari comes bundled with a new driver implementation that’s maintained by the Web Developer Experience team at Apple."
Post reply on HN