protractor angularJS global variables

前端 未结 2 1235
别跟我提以往
别跟我提以往 2021-01-19 17:32

I\'m using protractor with angularjs to create my e2e tests. I have many files for which my specs array is quite big and I want to share a common function across all files.

2条回答
  •  野性不改
    2021-01-19 17:56

    This works wonderfully...Just make sure you properly terminate the previous config params by using proper delimiter ',' .

            exports.config = {
               seleniumAddress: **,**
               onPrepare: function() {
                  browser.driver.manage().window().maximize();
               }**,**
               baseUrl:
               }
    

提交回复
热议问题