What line is causing this Protractor error?

前端 未结 1 1531
孤街浪徒
孤街浪徒 2021-01-12 22:16

Is there a way for Protractor to show in the console log what line the error occurred on? I just get this type of message:

Message:
    Failed: Cannot call m         


        
1条回答
  •  清酒与你
    2021-01-12 22:57

    Here is a related issue at jasminewd project that protractor uses under-the-hood:

    • Stack traces for Jasmine2 don't include asynchronous events

    The issue is now fixed, with jasmine upgrade to >=2.3.1.

    What you should do is to upgrade protractor to >=2.1.0.


    Old answer:

    As a workaround, get back to jasmine 1.x:

    exports.config = {
        framework: 'jasmine',
    
        ...
    }
    

    0 讨论(0)
提交回复
热议问题