PhantomJSλ‘ κ°λκΈ°λ₯Ό μ€ννλ €κ³ ν©λλ€.
μ΄ μ€λ₯ λ©μμ§κ° λνλ©λλ€.
"λλΌμ΄λ² μ€ν νμΌμ κ²½λ‘λ phantomjs.binary.path κΈ°λ₯/μμ€ν
μμ±/PATH λ³μλ‘ μ€μ ν΄μΌ ν©λλ€."
phantomjs.exeμ μμΉλ₯Ό ββμκ³ μμ΅λλ€.
무μμ μ€μ ν΄μΌ ν©λκΉ? "κΈ°λ₯/μμ€ν
μμ±/PATH" λ³μκ° λͺ¨νΈν©λλ€.
μ΄κ²μ΄ λ΄ protractor.conf.js νμΌμμ μ§μ ν μ μμ΅λκΉ? κ·Έλ λ€λ©΄ μ΄λ»κ²?
λ΄ μμ μ μ§λ¬Έμ λ΅νκΈ° ... λ€λ₯Έ μ¬λλ€μκ² λμμ΄λκΈ°λ₯Ό λ°λλλ€.
protractor.conf.jsμμ μ΄ μμ
μ μνν μ μμ΅λλ€.
capabilities: {
browserName: 'phantomjs',
'phantom.binary.path': 'the-path-goes-here'
}
νμ§λ§ "Can't find variable: angular"λΌλ λ λ€λ₯Έ μ€λ₯κ° λ°μν©λλ€.
μ΄ ν
μ€νΈλ Chromeμμ μ μ€νλ©λλ€.
μ΄λ€ μ΄μ λ‘ λ΄ μλ²κ° μ°¨λ¨λμμ΅λλ€. μ΄μ λͺ¨λ κ²μ΄ μλν©λλ€. λ°λΌμ ν΅μ¬μ κΈ°λ₯μ 'phantom.binary.path' μμ±μ΄μμ΅λλ€.
μ μ΄λ λ΄κ° μ¬μ©νλ μ€μ μμ(κ·Έλ¦¬κ³ μμμ μ°Έμ‘°ν μ€λ₯ λ©μμ§μμ) μ¬λ°λ₯Έ μμ±μ phantomjs.binary.path
μ΄ μλλΌ phantom.binary.path
phantomjs.binary.path
phantom.binary.path
μ
λλ€.
κ°μ₯ μ μ©ν λκΈ
μ μ΄λ λ΄κ° μ¬μ©νλ μ€μ μμ(κ·Έλ¦¬κ³ μμμ μ°Έμ‘°ν μ€λ₯ λ©μμ§μμ) μ¬λ°λ₯Έ μμ±μ
phantomjs.binary.path
μ΄ μλλΌphantom.binary.path
phantomjs.binary.path
phantom.binary.path
μ λλ€.