5

I'm trying to automate some regression tests for a site using Selenium but get the below console errors in Safari 11.0 whenever the WebDriver extension is active (not there when disabled):
TypeError: Value is not a sequence
TypeError: Not enough arguments

Looks like the same issue this user was seeing:
Value is not a sequence Safari exception
But in my case I need the extension in order to run my test build.
(Right? Or can I somehow disable it and still run automated tests?)

I use BrowserStack for my test browsers (I can see the TypeErrors by using their "Live" environment and opening the dev tools there) but need a way to test the site in "Automate" without the extension breaking the sections I'm trying to test.

When I execute my actual automated test I get the error "Expected condition failed: waiting for presence of element" because the needed section of the site entirely fails to load. The test works in other browsers and even older versions of Safari.

I'm new to Selenium and Java so any suggestions on how to get this test running in Safari 11.0 would be greatly appreciated.

My automated test uses Java (Java(TM) SE Runtime Environment (build 9.0.1+11), Selenium 3.7.1 and Eclipse.

abbie
  • 55
  • 7

1 Answers1

3

Safari provides native support for the WebDriver API starting Safari 10. Source: https://webkit.org/blog/6900/webdriver-support-in-safari-10/. Safari 11 uses the same native Safari toolkit for supporting automation using Selenium and no longer needs the WebDriver extension. This option can be enabled for Safari 11 from Develop > Allow Remote Automation.

The errors you highlighted are due to the WebDriver extension and it should be removed/disabled when running Selenium tests on Safari 11. You should connect with their support team and check if they provide an additional capability to disable this.

BountyHunter
  • 1,325
  • 15
  • 30
  • 1
    Thank you very much for your response. BrowserStack support got back to me - they're working on a fix for the bug on their end. I'll update this post with instructions or settings if they provide any but it sounds like no action will be required. – abbie Nov 28 '17 at 09:03
  • @abbie -- did this end up being correct? Did BrowerStack fix this on their end? – Jonathan Cole Feb 08 '19 at 06:52
  • I believe they did – BountyHunter Feb 08 '19 at 06:53