Selenium script issue.

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

Re: Selenium script issue.

Postby njain213 » Wed May 18, 2016 12:46 am

Yes, I am getting above error on selenium server log.


:50:59.669 INFO - Command request: click[id=login, ] on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:01.189 INFO - Got result: OK on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:01.194 INFO - Command request: waitForPageToLoad[120000, ] on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:04.933 INFO - Got result: OK on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:04.937 INFO - Command request: selectWindow[name=wsmpTop, ] on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:06.474 INFO - Got result: ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ ... le-windows for potential workarounds. on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:06.480 INFO - Command request: getLocation[, ] on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:08.022 INFO - Got result: OK,<URL>/worksitemp/dispatch?operation=zoom&datasource=homePage on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:08.030 INFO - Command request: testComplete[, ] on session 5b0b4035a378461b96c20cc0d4b82e56
15:51:08.031 INFO - Killing Firefox...
15:51:08.153 INFO - Got result: OK on session 5b0b4035a378461b96c20cc0d4b82e56

Could you please help me out in solving above issue?

OS--- Centos 6.5
njain213
 
Posts: 83
Joined: Thu Jul 16, 2015 5:11 am

Re: Selenium script issue.

Postby ssax » Wed May 18, 2016 4:14 pm

Are you seeing any debug messages in there? I'm looking for this line in particular and the information around it:

Code: Select all
debug: window.open call intercepted; window ID (which you can use with selectWindow()) is "myNewWindow"


You may need to add the -debug option when starting the selenium server:

Code: Select all
java -jar selenium-server-standalone-2.35.0.jar -debug
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 4402
Joined: Wed Feb 11, 2015 12:54 pm

Re: Selenium script issue.

Postby njain213 » Thu May 19, 2016 6:59 am

Code: Select all
17:22:00.442 DEBUG - Got result: OK on session 65ee0dede502415c8c5f41fe29889cac
17:22:00.442 INFO - Got result: OK on session 65ee0dede502415c8c5f41fe29889cac
17:22:00.442 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:00.442 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:51:58 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 2


17:22:00.444 DEBUG - ..command put?: true
17:22:00.444 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() called
17:22:00.444 DEBUG - waiting for data for at most 10 more s
17:22:00.447 DEBUG - REQUEST from SocketListener0@0.0.0.0:4444:
POST /selenium-server/driver/ HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE
Host: 10.72.26.249:4444
User-Agent: libwww-perl/5.833
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 73


17:22:00.447 DEBUG - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:22:00.448 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0
17:22:00.448 DEBUG - RestishHandler org.openqa.jetty.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
17:22:00.449 DEBUG - RestishHandler org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
17:22:00.449 DEBUG - PATH=/driver/ RESOURCE=file:/usr/local/selenium/MISSING%20RESOURCE
17:22:00.449 DEBUG - Looking for file:/usr/local/selenium/MISSING%20RESOURCE
17:22:00.459 DEBUG - RestishHandler org.openqa.selenium.server.SessionExtensionJsHandler in HttpContext[/selenium-server,/selenium-server]
17:22:00.459 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:00.460 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@6659c656
17:22:00.460 DEBUG - RestishHandler org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:00.460 DEBUG - req: POST /selenium-server/driver/ HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE
Host: 10.72.26.249:4444
User-Agent: libwww-perl/5.833
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 73


17:22:00.461 INFO - Command request: waitForPageToLoad[120000, ] on session 65ee0dede502415c8c5f41fe29889cac
17:22:00.462 DEBUG - Executing 'waitForPageToLoad' selenium core command on session 65ee0dede502415c8c5f41fe29889cac
17:22:00.462 DEBUG - Session 65ee0dede502415c8c5f41fe29889cac going to doCommand(waitForPageToLoad,120000,)
17:22:00.462 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:00.462 DEBUG -     Slow mode in effect: sleep 1500 milliseconds...
17:22:01.963 DEBUG -     ...done
17:22:01.963 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() 
17:22:01.963 DEBUG - putting command: json={command:"waitForPageToLoad",target:"120000",value:""}
17:22:01.963 DEBUG - ..command put?: true
17:22:01.963 DEBUG -     sel_39841 commandResultHolder sel_39841 getResult() called
17:22:01.963 DEBUG - waiting for data for at most 1800 more s
17:22:01.963 DEBUG - data from polling: json={command:"waitForPageToLoad",target:"120000",value:""}
17:22:01.963 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() -> json={command:"waitForPageToLoad",target:"120000",value:""}
17:22:01.963 DEBUG - res to sel_39841: json={command:"waitForPageToLoad",target:"120000",value:""}
17:22:01.964 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:01.964 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:52:00 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 1059


17:22:02.745 DEBUG - REQUEST from SocketListener0@0.0.0.0:4444:
POST /selenium-server/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_39841&sessionId=65ee0dede502415c8c5f41fe29889cac&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1463658722743&sequenceNumber=7 HTTP/1.1
Host: localhost:4444
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131029 Firefox/17.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 13
Content-Type: text/plain; charset=UTF-8
Pragma: no-cache
Cache-Control: no-cache


17:22:02.745 DEBUG - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:22:02.746 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0
17:22:02.746 DEBUG - RestishHandler org.openqa.jetty.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.746 DEBUG - RestishHandler org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.747 DEBUG - PATH=/driver/ RESOURCE=file:/usr/local/selenium/MISSING%20RESOURCE
17:22:02.747 DEBUG - Looking for file:/usr/local/selenium/MISSING%20RESOURCE
17:22:02.747 DEBUG - RestishHandler org.openqa.selenium.server.SessionExtensionJsHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.747 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.747 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@6659c656
17:22:02.748 DEBUG - RestishHandler org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.748 DEBUG - req: POST /selenium-server/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_39841&sessionId=65ee0dede502415c8c5f41fe29889cac&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1463658722743&sequenceNumber=7 HTTP/1.1
Host: localhost:4444
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131029 Firefox/17.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 13
Content-Type: text/plain; charset=UTF-8
Pragma: no-cache
Cache-Control: no-cache


17:22:02.748 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:02.749 DEBUG - Browser 65ee0dede502415c8c5f41fe29889cac/:top sel_39841 posted OK
17:22:02.749 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:02.749 DEBUG - putting command: OK
17:22:02.749 DEBUG - data from polling: OK
17:22:02.749 DEBUG -     sel_39841 commandResultHolder sel_39841 getResult() -> OK
17:22:02.749 DEBUG - Got result: OK on session 65ee0dede502415c8c5f41fe29889cac
17:22:02.749 INFO - Got result: OK on session 65ee0dede502415c8c5f41fe29889cac
17:22:02.749 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.750 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:52:00 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 2


17:22:02.750 DEBUG - ..command put?: true
17:22:02.750 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() called
17:22:02.750 DEBUG - waiting for data for at most 10 more s
17:22:02.752 DEBUG - REQUEST from SocketListener0@0.0.0.0:4444:
POST /selenium-server/driver/ HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE
Host: 10.72.26.249:4444
User-Agent: libwww-perl/5.833
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 76


17:22:02.753 DEBUG - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:22:02.753 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0
17:22:02.753 DEBUG - RestishHandler org.openqa.jetty.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.753 DEBUG - RestishHandler org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.753 DEBUG - PATH=/driver/ RESOURCE=file:/usr/local/selenium/MISSING%20RESOURCE
17:22:02.753 DEBUG - Looking for file:/usr/local/selenium/MISSING%20RESOURCE
17:22:02.754 DEBUG - RestishHandler org.openqa.selenium.server.SessionExtensionJsHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.754 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.754 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@6659c656
17:22:02.754 DEBUG - RestishHandler org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:02.754 DEBUG - req: POST /selenium-server/driver/ HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE
Host: 10.72.26.249:4444
User-Agent: libwww-perl/5.833
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 76


17:22:02.764 INFO - Command request: selectWindow[name=wsmpTop, ] on session 65ee0dede502415c8c5f41fe29889cac
17:22:02.764 DEBUG - Executing 'selectWindow' selenium core command on session 65ee0dede502415c8c5f41fe29889cac
17:22:02.764 DEBUG - Session 65ee0dede502415c8c5f41fe29889cac going to doCommand(selectWindow,name=wsmpTop,)
17:22:02.764 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:02.764 DEBUG -     Slow mode in effect: sleep 1500 milliseconds...
17:22:04.265 DEBUG -     ...done
17:22:04.265 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() 
17:22:04.265 DEBUG - putting command: json={command:"selectWindow",target:"name=wsmpTop",value:""}
17:22:04.265 DEBUG - ..command put?: true
17:22:04.266 DEBUG -     sel_39841 commandResultHolder sel_39841 getResult() called
17:22:04.266 DEBUG - waiting for data for at most 1800 more s
17:22:04.266 DEBUG - data from polling: json={command:"selectWindow",target:"name=wsmpTop",value:""}
17:22:04.266 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() -> json={command:"selectWindow",target:"name=wsmpTop",value:""}
17:22:04.266 DEBUG - res to sel_39841: json={command:"selectWindow",target:"name=wsmpTop",value:""}
17:22:04.267 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.269 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:52:02 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 1060


17:22:04.316 DEBUG - REQUEST from SocketListener0@0.0.0.0:4444:
POST /selenium-server/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_39841&sessionId=65ee0dede502415c8c5f41fe29889cac&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1463658724314&sequenceNumber=8 HTTP/1.1
Host: localhost:4444
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131029 Firefox/17.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 257
Content-Type: text/plain; charset=UTF-8
Pragma: no-cache
Cache-Control: no-cache


17:22:04.317 DEBUG - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:22:04.317 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0
17:22:04.317 DEBUG - RestishHandler org.openqa.jetty.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.317 DEBUG - RestishHandler org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.318 DEBUG - PATH=/driver/ RESOURCE=file:/usr/local/selenium/MISSING%20RESOURCE
17:22:04.318 DEBUG - Looking for file:/usr/local/selenium/MISSING%20RESOURCE
17:22:04.318 DEBUG - RestishHandler org.openqa.selenium.server.SessionExtensionJsHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.319 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.320 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@6659c656
17:22:04.320 DEBUG - RestishHandler org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.320 DEBUG - req: POST /selenium-server/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_39841&sessionId=65ee0dede502415c8c5f41fe29889cac&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1463658724314&sequenceNumber=8 HTTP/1.1
Host: localhost:4444
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131029 Firefox/17.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 257
Content-Type: text/plain; charset=UTF-8
Pragma: no-cache
Cache-Control: no-cache


17:22:04.320 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:04.331 DEBUG - Browser 65ee0dede502415c8c5f41fe29889cac/:top sel_39841 posted ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ide.html#alerts-popups-and-multiple-windows for potential workarounds.
17:22:04.331 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:04.331 DEBUG - putting command: ERROR: Window does not exist. If this looks like a Selenium bug, make sure to readhttp://seleniumhq.org/docs/02_selenium_ide.html#alerts-popups-and-multiple-windows for potential workarounds.
17:22:04.331 DEBUG - data from polling: ERROR: Window does not exist. If this looks like a Selenium bug, make sure to readhttp://seleniumhq.org/docs/02_selenium_ide.html#alerts-popups-and-multiple-windows for potential workarounds.
17:22:04.331 DEBUG -     sel_39841 commandResultHolder sel_39841 getResult() -> ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ide.html#alerts-popups-and-multiple-windows for potential workarounds.
17:22:04.331 DEBUG - Got result: ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ide.html#alerts-popups-and-multiple-windows for potential workarounds. on session 65ee0dede502415c8c5f41fe29889cac
17:22:04.331 INFO - Got result: ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ide.html#alerts-popups-and-multiple-windows for potential workarounds. on session 65ee0dede502415c8c5f41fe29889cac
17:22:04.331 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.332 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:52:02 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 192


17:22:04.334 DEBUG - ..command put?: true
17:22:04.335 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() called
17:22:04.335 DEBUG - waiting for data for at most 10 more s
17:22:04.337 DEBUG - REQUEST from SocketListener0@0.0.0.0:4444:
POST /selenium-server/driver/ HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE
Host: 10.72.26.249:4444
User-Agent: libwww-perl/5.833
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 58


17:22:04.337 DEBUG - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:22:04.337 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0
17:22:04.337 DEBUG - RestishHandler org.openqa.jetty.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.338 DEBUG - RestishHandler org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.338 DEBUG - PATH=/driver/ RESOURCE=file:/usr/local/selenium/MISSING%20RESOURCE
17:22:04.338 DEBUG - Looking for file:/usr/local/selenium/MISSING%20RESOURCE
17:22:04.338 DEBUG - RestishHandler org.openqa.selenium.server.SessionExtensionJsHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.338 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.338 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@6659c656
17:22:04.339 DEBUG - RestishHandler org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:04.339 DEBUG - req: POST /selenium-server/driver/ HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE
Host: 10.72.26.249:4444
User-Agent: libwww-perl/5.833
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 58


17:22:04.339 INFO - Command request: getLocation[, ] on session 65ee0dede502415c8c5f41fe29889cac
17:22:04.339 DEBUG - Executing 'getLocation' selenium core command on session 65ee0dede502415c8c5f41fe29889cac
17:22:04.339 DEBUG - Session 65ee0dede502415c8c5f41fe29889cac going to doCommand(getLocation,,)
17:22:04.339 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:04.339 DEBUG -     Slow mode in effect: sleep 1500 milliseconds...
17:22:05.840 DEBUG -     ...done
17:22:05.840 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() 
17:22:05.840 DEBUG - putting command: json={command:"getLocation",target:"",value:""}
17:22:05.840 DEBUG - ..command put?: true
17:22:05.840 DEBUG -     sel_39841 commandResultHolder sel_39841 getResult() called
17:22:05.840 DEBUG - waiting for data for at most 1800 more s
17:22:05.841 DEBUG - data from polling: json={command:"getLocation",target:"",value:""}
17:22:05.841 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() -> json={command:"getLocation",target:"",value:""}
17:22:05.841 DEBUG - res to sel_39841: json={command:"getLocation",target:"",value:""}
17:22:05.842 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.844 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:52:04 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 1047


17:22:05.868 DEBUG - REQUEST from SocketListener0@0.0.0.0:4444:
POST /selenium-server/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_39841&sessionId=65ee0dede502415c8c5f41fe29889cac&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1463658725859&sequenceNumber=9 HTTP/1.1
Host: localhost:4444
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131029 Firefox/17.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 117
Content-Type: text/plain; charset=UTF-8
Pragma: no-cache
Cache-Control: no-cache


17:22:05.868 DEBUG - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:22:05.868 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0
17:22:05.868 DEBUG - RestishHandler org.openqa.jetty.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.868 DEBUG - RestishHandler org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.869 DEBUG - PATH=/driver/ RESOURCE=file:/usr/local/selenium/MISSING%20RESOURCE
17:22:05.869 DEBUG - Looking for file:/usr/local/selenium/MISSING%20RESOURCE
17:22:05.876 DEBUG - RestishHandler org.openqa.selenium.server.SessionExtensionJsHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.876 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.876 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@6659c656
17:22:05.876 DEBUG - RestishHandler org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.877 DEBUG - req: POST /selenium-server/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_39841&sessionId=65ee0dede502415c8c5f41fe29889cac&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1463658725859&sequenceNumber=9 HTTP/1.1
Host: localhost:4444
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131029 Firefox/17.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 117
Content-Type: text/plain; charset=UTF-8
Pragma: no-cache
Cache-Control: no-cache


17:22:05.877 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:05.877 DEBUG - Browser 65ee0dede502415c8c5f41fe29889cac/:top sel_39841 posted OK,<URL>/worksitemp/dispatch?operation=zoom&datasource=homePage
17:22:05.877 DEBUG - ---------retrieving CommandQueue for sel_39841
17:22:05.877 DEBUG - putting command: OK,<URL>/worksitemp/dispatch?operation=zoom&datasource=homePage
17:22:05.877 DEBUG - data from polling: OK,<URL>/worksitemp/dispatch?operation=zoom&datasource=homePage
17:22:05.877 DEBUG -     sel_39841 commandResultHolder sel_39841 getResult() -> OK,<URL>/worksitemp/dispatch?operation=zoom&datasource=homePage
17:22:05.878 DEBUG - Got result: OK,<URL>/worksitemp/dispatch?operation=zoom&datasource=homePage on session 65ee0dede502415c8c5f41fe29889cac
17:22:05.878 INFO - Got result: OK,<URL>/worksitemp/dispatch?operation=zoom&datasource=homePage on session 65ee0dede502415c8c5f41fe29889cac
17:22:05.878 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.878 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:52:04 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 86


17:22:05.878 DEBUG - ..command put?: true
17:22:05.878 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() called
17:22:05.878 DEBUG - waiting for data for at most 10 more s
17:22:05.882 DEBUG - REQUEST from SocketListener0@0.0.0.0:4444:
POST /selenium-server/driver/ HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE
Host: 10.72.26.249:4444
User-Agent: libwww-perl/5.833
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 59


17:22:05.882 DEBUG - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:22:05.882 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0
17:22:05.882 DEBUG - RestishHandler org.openqa.jetty.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.882 DEBUG - RestishHandler org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.883 DEBUG - PATH=/driver/ RESOURCE=file:/usr/local/selenium/MISSING%20RESOURCE
17:22:05.884 DEBUG - Looking for file:/usr/local/selenium/MISSING%20RESOURCE
17:22:05.885 DEBUG - RestishHandler org.openqa.selenium.server.SessionExtensionJsHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.885 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.885 DEBUG - RestishHandler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@6659c656
17:22:05.885 DEBUG - RestishHandler org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:05.885 DEBUG - req: POST /selenium-server/driver/ HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE
Host: 10.72.26.249:4444
User-Agent: libwww-perl/5.833
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 59


17:22:05.885 INFO - Command request: testComplete[, ] on session 65ee0dede502415c8c5f41fe29889cac
17:22:05.885 INFO - Killing Firefox...
17:22:05.920 DEBUG - EOFException()
17:22:05.921 DEBUG - EOFException()
17:22:05.925 DEBUG - EOFException()
17:22:05.925 DEBUG - EOFException()
17:22:05.925 DEBUG - EOFException()
17:22:06.030 DEBUG - clearing queue set
17:22:06.030 DEBUG - putting command: CommandResultHolder.POISON
17:22:06.031 DEBUG - ..command put?: true
17:22:06.037 DEBUG -     sel_39841 commandHolder sel_39841 getCommand()  poisoning pollers
17:22:06.037 DEBUG - putting command: json={command:"CommandHolder.POISON",target:"",value:""}
17:22:06.037 DEBUG - data from polling: json={command:"CommandHolder.POISON",target:"",value:""}
17:22:06.037 DEBUG -     sel_39841 commandHolder sel_39841 getCommand() -> null
17:22:06.037 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:06.037 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:52:05 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0


17:22:06.037 DEBUG - EOFException()
17:22:06.038 DEBUG - ..command put?: true
17:22:06.038 INFO - Got result: OK on session 65ee0dede502415c8c5f41fe29889cac
17:22:06.038 DEBUG - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
17:22:06.043 DEBUG - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 19 May 2016 11:52:05 GMT
Server: Jetty/5.1.x (Linux/2.6.32-431.el6.x86_64 amd64 java/1.8.0_91
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 2
Last edited by tmcdonald on Thu May 19, 2016 2:07 pm, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
njain213
 
Posts: 83
Joined: Thu Jul 16, 2015 5:11 am

Re: Selenium script issue.

Postby ssax » Thu May 19, 2016 2:44 pm

Can you try installing Chrome on the selenium server and adjust your configuration to use Chrome and see if that resolves it?

Code: Select all
DEBUG - Browser 65ee0dede502415c8c5f41fe29889cac/:top sel_39841 posted ERROR: Window does not exist.


That to me looks like Firefox is saying that the window does not exist, maybe it doesn't, maybe it crashes on that page for some reason.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 4402
Joined: Wed Feb 11, 2015 12:54 pm

Re: Selenium script issue.

Postby njain213 » Fri May 20, 2016 7:53 am

Hi,

I tried installing Chrome but facing below issue.

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Setting up Install Process
Examining ./google-chrome-stable_current_x86_64.rpm: google-chrome-stable-50.0.2661.102-1.x86_64
Marking ./google-chrome-stable_current_x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:50.0.2661.102-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-50.0.2661.102-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-50.0.2661.102-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-50.0.2661.102-1.x86_64
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-50.0.2661.102-1.x86_64 (/google-chrome-stable_current_x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
Error: Package: google-chrome-stable-50.0.2661.102-1.x86_64 (/google-chrome-stable_current_x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.18)(64bit)
Error: Package: google-chrome-stable-50.0.2661.102-1.x86_64 (/google-chrome-stable_current_x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@centos651 selenium]# yum install ./google-chrome-stable_current_*.rpm --skip-broken
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Setting up Install Process
Examining ./google-chrome-stable_current_x86_64.rpm: google-chrome-stable-50.0.2661.102-1.x86_64
Marking ./google-chrome-stable_current_x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:50.0.2661.102-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-50.0.2661.102-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-50.0.2661.102-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-50.0.2661.102-1.x86_64

Packages skipped because of dependency problems:
google-chrome-stable-50.0.2661.102-1.x86_64 from /google-chrome-stable_current_x86_64



I am unable to find above RPM as it is corrupted.


Could you please send me chrome installation steps for centos 6.5 and also provide me the changes that I have to do for running above script to solved this issue.
njain213
 
Posts: 83
Joined: Thu Jul 16, 2015 5:11 am

Re: Selenium script issue.

Postby mcapra » Fri May 20, 2016 1:22 pm

We are in the process of updating the documentation for implementing Selenium in Nagios XI. This should help shed some light on the best way to monitor Selenium test cases from Nagios. I will be sure to let you know when the documentation is ready!
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3587
Joined: Thu May 05, 2016 3:54 pm

Re: Selenium script issue.

Postby njain213 » Fri May 20, 2016 2:34 pm

Thanks for the update.

My trial version is going to be expired soon and before that I want to give demo to higher management so that we would purchase it.

Any expected date of completion of this document?


Thanks
Naman
njain213
 
Posts: 83
Joined: Thu Jul 16, 2015 5:11 am

Re: Selenium script issue.

Postby tmcdonald » Mon May 23, 2016 10:42 am

We are nearing the final testing/review stages for the doc - I have sent you a pre-release version via PM that should be considered BETA and treated a such. I expect the final version will be ready later this week or early next.
Former Nagios employee
tmcdonald
 
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Selenium script issue.

Postby njain213 » Tue May 24, 2016 1:21 am

Thanks for the confirmation. I will wait for the final release version. Please let me know once it will be ready.
njain213
 
Posts: 83
Joined: Thu Jul 16, 2015 5:11 am

Re: Selenium script issue.

Postby rkennedy » Tue May 24, 2016 10:00 am

Sounds good, I'll leave this open for now. If you don't hear from us in a week or so, feel free to request an update for the documentation.
Former Nagios Employee
rkennedy
 
Posts: 6581
Joined: Mon Oct 05, 2015 11:45 am

PreviousNext

Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 14 guests