Headless Browser Testing with Gauge

170 views
Skip to first unread message

nareen chelvaraj

unread,
Nov 20, 2016, 7:45:30 PM11/20/16
to getgauge
Hi Guys,

I am trying to run some Gauge scripts with a headless browser (Phantom JS) . I am on Gauge Version : 0.6.2 and latest version of Phantom. All my scripts are running fine with Chrome or FF. Below is the stack trace of the error

 P[ERROR - 2016-11-21T00:32:40.724Z] WebElementLocator - _handleLocateCommand - Element(s) NOT Found: GAVE UP. Search St
op Time: 1479688360693
  phantomjs://platform/console++.js:263 in error
 F[INFO  - 2016-11-21T00:32:40.921Z] ShutdownReqHand - _handle - About to shutdown

        Failed Step: Click on element "signIn"
        Specification: specs\CreateSubscription.spec:15
        Error Message: org.openqa.selenium.NoSuchElementException: {"errorMessage":"Unable to find element with id 'sign
In'","request":{"headers":{"Accept-Encoding":"gzip,deflate","Connection":"Keep-Alive","Content-Length":"31","Content-Typ
e":"application/json; charset=utf-8","Host":"localhost:11627","User-Agent":"Apache-HttpClient/4.5.2 (Java/1.8.0_92)"},"h
ttpVersion":"1.1","method":"POST","post":"{\"using\":\"id\",\"value\":\"signIn\"}","url":"/element","urlParsed":{"anchor
":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":
"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOrig
inal":"/session/c4aa0ea0-af81-11e6-b3ff-172c3a276463/element"}}
        Command duration or timeout: 100.12 seconds
        For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
        Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'

Any thoughts \help.

Regards,
Nareen



Srikanth V

unread,
Nov 21, 2016, 9:25:22 PM11/21/16
to getgauge
Hi Nareen,

Sorry to hear about the issues you are facing. Unfortunately, this seems to be an issue related to your driver/browser ecosystem, and Gauge does not have much control there.

However, I should add that we have had users report success with Gauge + PhantomJS + Webdriver. The stacktrace isn't very informative either, so I am unable to locate a possible cause. Sorry about that.

thanks
Srikanth
Reply all
Reply to author
Forward
0 new messages