In PhantomJS how can I pass URI parameters to an HTML file loaded with the file:// protocol? -
i using phantomjs 2.1.1. i'd open html file on local file system in phantom, , pass uri parameters.
if open page without uri parameters, e.g:
page.open("product.html");
then page opens fine if pass in uri parameters path:
page.open("product.html?id=cheese");
then error "product.html?id=cheese: no such file or directory" (in phantomjs debugging environment product.html), if phantom including uri parameters part of file name. supported examining network requests in phantom debugger.
i've experienced after upgrading past phantomjs 2.0. using phantomjs 1.9, , able pass uri parameters in manner , worked fine. there new phantom api passing uri parameters?
Comments
Post a Comment