Session not created Selenium/webdriver when using Safari 12

前端 未结 2 868
北荒
北荒 2021-01-24 10:44

Since upgrading to Safari 12, my automated scripts are now getting this error:

SessionNotCreatedError: Request body does not contain required parameter \'capabil         


        
2条回答
  •  时光说笑
    2021-01-24 11:48

    This will also work if you get an error for 'await' when trying @mjdease solution above.

    new webdriver.Builder()
        .usingServer(new safari.ServiceBuilder().addArguments('--legacy').build().start())
        .forBrowser('safari')
        .build(); 
    

提交回复
热议问题