Preceptor Webdriver -


MIT
跨平台
JavaScript

软件简介

Preceptor Webdriver 的代码通过 Preceptor
客户端装饰器插件注入到测试客户端中,并且在中央配置文件中配置后,可简化测试安装并且拆除 Selenium 测试。

示例代码:

{ // Preceptor task configuration
    "type": "mocha",    // ...

    "decorator": [
        {            
"type": "webDriver", // Id of this module when registered in Preceptor
            "configuration": {               
               "isolation": true, // Runs in isolation mode

                "client": { // Client configuration
                    "type": "taxi",                    
                    "configuration": {                       
                    "mode": "sync"
                    },                    
                    "capabilities": {                       
                    "browserName": "firefox"
                    }
                },                
                "server": { // Server configuration
                    "type": "selenium"
                }
            }
        }
    ],    // ...}