2014-10-28 104 views

回答

0

不完全確定你想要實現什麼,假設你只是想要一個現有的JS文件並在Selenium中執行它的內容。爲此,您可以使用file_get_contents()函數。

$script = file_get_contents('/path/to/your/script.js'); 
$this->execute(['script' => $script, 'args' => []]); 
相關問題