sagg1295
sagg1295

Reputation: 197

Running e2e tests in headless safari using nightwatch

I have writing e2e tests to be run in headless mode in all the major browsers like chrome, safari, firefox. Headless mode is working fine on chrome and firefox but not working on safari. When i ran my tests it opens the safari browser everytime.

I have tried safari options like :

My safari object i'm defining in my nightwatch.json is :-

"safari": {
      "desiredCapabilities": {
        "browserName": "safari",
        "safariOptions" : {
          "args" : ["--headless", "no-sandbox", "disable-gpu"]
       }
      }
    }

But above configuration is not working. I have already searched all the related articles on github and stackoverflow for this. But all the efforts goes in vain.

Any help will be appreciated!!!

Upvotes: 2

Views: 2772

Answers (1)

sagg1295
sagg1295

Reputation: 197

After doing more googling regarding my above issue, i'm able to figure out that right now headless mode is not supported in safari browser. For More info visit this link :- https://github.com/SeleniumHQ/selenium/issues/5985

Upvotes: 5

Related Questions