facebook/php-webdriver — pull request #92 by blackakula (2013-10-05 20:01:56+00:00)
Title: Remove restriction from script execution

In my automation script I really need to do something like:

$remoteWebDriver->executeScript('myWindow = window.open("", "My Window", "width=640,height=480,resizable,scrollbars");
myWindow.listOfPlaceholders = arguments[0];
myWindow.document.write("<!doctype html>\n<html lang=\"en\">\n<head>\n ... A LOT OF HTML HERE ... <\/body>\n<\/html>");', array($placeholders));

In my case **$placeholders** is array, which caused exception. And the escaping of script code made impossible to send my html to JS. Am I doing something wrong? Do you plan to make such things possible to do?