Discussion:
[selenium-users] NETWORK_ERR: XMLHttpRequest Exception
sumitha s
2018-12-10 16:24:59 UTC
Permalink
Hi,

we are using phantomjs driver to execute our selenium test cases. we are
running around 40 test cases, we are seeing the below exception during our
run, we are unable to see all the 40 with success, most of the times it
fails with the below error,

timestamp[2018-12-06 08:47:49.421] priority[INFO] category[root]
message[driver after Page source
?ABCIAMAPPID=INT&resource_url=h%252Fwelcome.jspx]
thread[SanityTest_steadyState]
[java] [ERROR - 2018-12-06T15:48:35.484Z] Session
[34d911c0-f96e-11e8-8428-9fe1fe8a29c7] - page.onError - msg: NETWORK_ERR:
XMLHttpRequest Exception 101: A network error occured in synchronous
requests.
[java] [ERROR - 2018-12-06T15:48:35.484Z] Session
[34d911c0-f96e-11e8-8428-9fe1fe8a29c7] - page.onError - stack:
[java] (anonymous function)
(/afr/partition/webkit/n/default/opt/d/core-ASPEN-7005.js:37)
[java] (anonymous
function)/afr/partition/webkit/n/default/opt/d/core-ASPEN-7005.js:23)
[java] (anonymous function)
//afr/partition/webkit/n/default/opt/d/core-ASPEN-7005.js:22)
[java] (anonymous function)
/afr/partition/webkit/n/default/opt/d/core-ASPEN-7005.js:22)
[java] (anonymous function)
(/afr/partition/webkit/n/default/opt/d/core-ASPEN-7005.js:7)
[java] (anonymous function)
(/afr/partition/webkit/n/default/opt/d/core-ASPEN-7005.js:6)
[java] (anonymous function)
(/afr/partition/webkit/n/default/opt/d/core-ASPEN-7005.js:3)
[java] (anonymous function)
(/afr/partition/webkit/n/default/opt/d/boot-ASPEN-7005.js:601)
[java] (anonymous function)
(/afr/partition/webkit/n/default/opt/d/boot-ASPEN-7005.js:615)
[java] (anonymous function)
/faces/Home/welcome.jspx;jsessionid=XmWENFydgQcrQff37kOHdtPuMca71AvX_I6TMMpYe7Tgibg2-AyO!1164904450:12)
[java] timestamp[2018-12-06 08:48:36.591] priority[INFO]
category[root] message[Sleeping for 1000 milliseconds.]
thread[SALSanityTest_steadyState]
[java] [ERROR - 2018-12-06T15:51:57.608Z] WebElementLocator -
_handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time:
1544111517596
[java] [INFO - 2018-12-06T15:51:57.741Z] ShutdownReqHand - _handle -
About to shutdown
[java] timestamp[2018-12-06 08:51:57.684] priority[ERROR]
category[root] message[~~~Selenium user exception. Shutting down the driver
'JunitPhantomJSDriver_phantomjs_on_LINUX_34d911c0-f96e-11e8-8428-9fe1fe8a29c7'
only.] thread[SanityTest_steadyState]
[java] org.openqa.selenium.NoSuchElementException:
{"errorMessage":"Unable to find element with xpath
'//*[text()='View']'","request":{"headers":{"Accept":"application/json,
image/png","Connection":"Keep-Alive","Content-Length":"46","Content-Type":"application/json;
charset=utf-8","Host":"localhost:1705"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"xpath\",\"value\":\"//*[text()='View']\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/34d911c0-f96e-11e8-8428-9fe1fe8a29c7/element"}}
[java] Command duration or timeout: 200.09 seconds

I have googled it, it shows to set the web security false, i already tried
it, its not working. Any suggestions please?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fccf2008-9714-46be-a1fb-7bf51a2440a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...