I use Protractor 7.0 and Jasemine 3.6.1, but when i use .withContext()
, I get Failed: expect(...).toEqual(...).withContext is not a function
error message.
I have searched the issue and the people suggest to update the Jasmine and Protractor, but it doesn't help.
Asked
Active
Viewed 749 times
1

pynexj
- 19,215
- 5
- 38
- 56

Ara Galstyan
- 486
- 1
- 4
- 11
-
Does this answer your question? [Jasmine 'expect(...).withContext is not a function' error](https://stackoverflow.com/questions/55502100/jasmine-expect-withcontext-is-not-a-function-error) – Sergey Pleshakov Sep 14 '20 at 19:08
-
your machine may have 2 different protractors: global and local. You may think you're using 7, but in fact another one may be used – Sergey Pleshakov Sep 14 '20 at 19:11
-
No, that answer did not help me. My global and local protractor are the same - 7.0.0 @SergeyPleshakov – Ara Galstyan Sep 15 '20 at 06:12
-
what about me second comment? – Sergey Pleshakov Sep 15 '20 at 12:31
-
I said, that my global and local protractor was the same version – Ara Galstyan Sep 17 '20 at 08:14