Subject: | Failing test t/50-mech-error.t |
Date: | Mon, 22 Jun 2015 11:46:44 +0100 |
To: | bug-WWW-Mechanize-PhantomJS [...] rt.cpan.org |
From: | Andrew Beverley <andy [...] andybev.com> |
I may be doing something wrong here, as no tests are showing failed on
CPAN testers, but I'd appreciate some help nonetheless.
I get the following error when running the tests:
# PhantomJS version '1.9.0', ghostdriver version '1.1.0'
t/50-mech-error.t ............. 1/2
# Failed test 'the correct location gets flagged as error'
# at foo line 4.
# 'Error while executing command: executeScript: An unknown server-side error occurred while processing the command.: {"errorMessage":"Can't find variable: bar","request":{"headers":{"Accept":"application/json","Connection":"TE, close","Content-Length":"33","Content-Type":"application/json; charset=utf-8","Host":"localhost:8910","TE":"deflate,gzip;q=0.3","User-Agent":"libwww-perl/6.08"},"httpVersion":"1.1","method":"POST","post":"{\"script\":\"return bar\",\"args\":[]}","url":"/execute","urlParsed":{"anchor":"","query":"","file":"execute","directory":"/","path":"/execute","relative":"/execute","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/execute","queryKey":{},"chunks":["execute"]},"urlOriginal":"/session/e8f2f2f0-18c8-11e5-92f4-df6634fedf54/execute"}} at /usr/local/share/perl/5.20.2/Selenium/Remote/Driver.pm line 300.
# at /usr/local/share/perl/5.20.2/Selenium/Remote/Driver.pm line 300.
# '
# doesn't match '(?^:\bat foo line 2\b)'
# Looks like you failed 1 test of 2.
t/50-mech-error.t ............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
I could have misread that, but it looks like the error format may have
changed in Selnium::Remote::Driver?
Thanks,
Andy