空手道 UI 脚本握手无效

问题描述 投票:0回答:1

空手道 UI 功能文件因握手错误而失败 这是下面的代码,只是一个打开角度站点的基本功能文件

Background
configure cors = true
configure driver = {type: 'chrome', executable: 'chrome', addOptions: '\[*--remote-allow-origins=*\]}
Scenario: User goes to Angular
Given driver 'https://angular.io'
And fullscreen()
Then assert locate('.nav-link.home').exists```

/////////Error I am getting that is a web socket issue
org.opentest4j.AssertionFailedError: driver config / start failed: io.netty.handler.codec.http.websocketx.WebSocketClientHandshakeException: Invalid handshake response getStatus: 403 Forbidden, options: {type=chrome, target=null}
classpath:features/testing.feature:8
       at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)
       at org.junit.jupiter.api.Assertions.fail(Assertions.java:135)
       at com.intuit.karate.junit5.FeatureNode.lambda$next$1(FeatureNode.java:86)
       at ```
karate
1个回答
0
投票
Feature: Test Feature

  Background: 
    * configure cors = true
    * configure driver = { type: 'chrome' }

  Scenario: User goes to Angular
    Given driver 'https://angular.io'
    And fullscreen()
    Then assert locate('.nav-link.home').exists
© www.soinside.com 2019 - 2024. All rights reserved.