I try to run a selenium test against our software headless using phantomJs. I was able to run selenium using chrome or firefox in our application and also was able to execute a small google search test using phantomjs.
But using phantomJs on our software does not work beyond the initial login.
I'm using the following libraries:
- selenium-server-standalone-2.43.1.jar
- selenide-2.14.jar
- phantomjs-1.9.8
The test scenario basically consist of:
- opening the login page
- enter credentials
- submit form
- the followup page is loaded, using heavy ajax calls. Also it utilize
jQuery.blockUI();
On step (4), the test stops working. The screenshot taken shows a blank white page with a single spinner.
Feedback welcome, thanks a lot in advance.
**edit* this is the console output:
Page title is: My Companies Title
[ERROR - 2014-12-18T17:44:34.483Z] Session [8228e4d0-86dd-11e4-9f8a-db44bbbf7f4b] - page.onError - msg: TypeError: 'undefined' is not a function (evaluating 'b[a](d,f,this)')
[ERROR - 2014-12-18T17:44:34.483Z] Session [8228e4d0-86dd-11e4-9f8a-db44bbbf7f4b] - page.onError - stack:
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:222)
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:203)
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:203)
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:283)
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:203)
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:203)
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:282)
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:203)
(anonymous function) (http://my.url.com:8081/loginpage/generated/dd5b66ab4397f3270cca5b10ddc4521e.js:281)
[ERROR - 2014-12-18T17:44:35.036Z] WebElementLocator - _handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time: 1418924675027
[ERROR - 2014-12-18T17:44:35.270Z] WebElementLocator - _handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time: 1418924675253