I am attempting to execute the spec.js
file across multiple browsers using Multicapabilities in conf.js
.
However, I specifically want a certain line of code to only run for Internet Explorer. I have tried putting this code snippet inside an IF statement with the browser title as the condition. However, the IF statement is not triggering and instead, throwing an error message:
object is not a function
Could someone provide guidance on how to properly write an IF statement in Protractor?