当前位置: 首页 > 知识库问答 >
问题:

“运行量角器时,Runtime.ExecutionContextCreated出现无效的'Context'错误

郤旭东
2023-03-14

我的配置js如下所示:

     exports.config = { 
          directConnect: true, // Capabilities to be passed
          //to the webdriver instance. 
         capabilities: { 'browserName': 'chrome', },
         framework: 'jasmine2',
         specs: ['./src/sli_sanitytests/San1_Check_
                        Sli_Homepage_is_Accessible_spec.js',
                 './src/sli_sanitytests/San2_
                  Click_createButton_to_Open_Sli_CreateForm_page_spec.js',
                 './src/sli_sanitytests/San3_
                  Create_Sli_reference_spec.js' ], 
               suites: { 
                         smoke: ['./smoke/!*.spec.js'],
                         regression:['./regression/!*.spec.js'],
                         functional: ['./functional/!*.spec.js'],
                         all: ['./!*!/!*.spec.js'],
                         selected:['./functional/addcustomer.spec.js',
                                    './regression/openaccount.spec.js'],
                         },
                       // Options to be passed to Jasmine
                  jasmineNodeOpts: {
                 //onComplete will be called just before the driver quits.                                
                  onComplete: null, 
                 // If true, display spec names. 
                 isVerbose: true, // If true,print colors to the terminal. 
                 showColors: true, // If true, include stack traces in       
                                   //failures. 
                 includeStackTrace: true, // Default time to wait in ms  
                                         //before a test fails.  
                 defaultTimeoutInterval: 80000 
                             },
                //enter code here 
               onPrepare:function() { 
                   browser.ignoreSynchronization = true;
                   browser.driver.manage().window().maximize(); 
               },
             }

共有1个答案

濮景龙
2023-03-14

2016-10-13:ChromeDriver V2.24已经发布,支持Chrome V52-54。(谢谢@安东)

2016-08-16:Chrome开发频道最近的一次更新引入了一个错误,阻止ChromeDriver正常启动。在解决了同样的问题之后,我建议备份您的数据,并恢复到Chrome的测试版或稳定发布渠道。有关安全切换的更多细节,请参见Chrome发布渠道。


或者,切换到ChromeDriver的开发版本也可以解决这个问题。来自chromedriver项目的一个已关闭问题:

 类似资料: