Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with selenium-server-4.4.0 (Grid) #3

Open
rajasegar opened this issue Sep 1, 2022 · 0 comments
Open

Not working with selenium-server-4.4.0 (Grid) #3

rajasegar opened this issue Sep 1, 2022 · 0 comments

Comments

@rajasegar
Copy link

I am trying the utils example in examples/utils.lisp with the latest selenium server (Grid), but getting an I/O timeout error

(ql:quickload :cl-webdriver-client)
(defpackage my-test
  (:use :cl :webdriver-client)
  (:import-from
   :webdriver-client-utils
   :send-keys
   :click
   :wait-for))

(in-package :my-test)

(with-session ()
  (setf (url) "https://google.com")
  (send-keys "cl-webdriver-client")
  (click "[name=btnK]")
  (wait-for "#result-stats"))

Downloaded the server from here https://www.selenium.dev/downloads/

Starting the server like this

java -jar selenium-server-4.4.0.jar standalone

Error message:

I/O timeout while doing input on #<SB-SYS:FD-STREAM for "socket 127.0.0.1:55498, peer: 127.0.0.1:4444" {1003A31493}>.
   [Condition of type SB-SYS:IO-TIMEOUT]


Restarts:
 0: [RETRY-REQUEST] Retry the same request.
 1: [IGNORE-AND-CONTINUE] Ignore the error and continue.
 2: [ABORT] Abort compilation.
 3: [*ABORT] Return to SLIME's top level.
 4: [ABORT] abort thread (#<THREAD "worker" RUNNING {10039F1253}>)

Backtrace:
  0: ((FLET SB-UNIX::BODY :IN SB-IMPL::SIGNAL-TIMEOUT))
  1: (SB-IMPL::SIGNAL-TIMEOUT SB-SYS:IO-TIMEOUT :STREAM #<SB-SYS:FD-STREAM for "socket 127.0.0.1:55498, peer: 127.0.0.1:4444" {1003A31493}> :DIRECTION :INPUT :SECONDS 10.0)
  2: (SB-IMPL::REFILL-INPUT-BUFFER #<SB-SYS:FD-STREAM for "socket 127.0.0.1:55498, peer: 127.0.0.1:4444" {1003A31493}>)
  3: (SB-IMPL::INPUT-UNSIGNED-8BIT-BYTE #<SB-SYS:FD-STREAM for "socket 127.0.0.1:55498, peer: 127.0.0.1:4444" {1003A31493}> NIL NIL)
  4: (READ-BYTE #<SB-SYS:FD-STREAM for "socket 127.0.0.1:55498, peer: 127.0.0.1:4444" {1003A31493}> NIL NIL)
  5: (DEXADOR.BACKEND.USOCKET::READ-UNTIL-CRLF*2 #<SB-SYS:FD-STREAM for "socket 127.0.0.1:55498, peer: 127.0.0.1:4444" {1003A31493}>)
  6: (DEXADOR.BACKEND.USOCKET::READ-RESPONSE #<SB-SYS:FD-STREAM for "socket 127.0.0.1:55498, peer: 127.0.0.1:4444" {1003A31493}> T NIL T)
  7: (DEXADOR.BACKEND.USOCKET:REQUEST #<unavailable argument> :METHOD :POST :CONTENT "{\"sessionId\":null,\"capabilities\":{\"alwaysMatch\":{\"platformName\":\"macosx\"},\"firstMatch\":[{\"browserName\":\"..
  8: (WEBDRIVER-CLIENT::HTTP-POST "/session" :SESSION-ID NIL :CAPABILITIES ((:ALWAYS-MATCH (WEBDRIVER-CLIENT::PLATFORM-NAME . "macosx")) (:FIRST-MATCH (#) (#))))
  9: (MAKE-SESSION NIL)
 10: ((SB-C::TOP-LEVEL-FORM (LET (#1=#:SESSION0) (UNWIND-PROTECT (PROGN (SETF #1# #2=#) (LET #2# #2#)) (WHEN #1# (DELETE-SESSION #1#)))))) [toplevel]
 11: (SB-FASL::LOAD-FASL-GROUP #S(SB-FASL::FASL-INPUT :STREAM #<SB-SYS:FD-STREAM for "file /private/var/tmp/slime0xMRXb.fasl" {1003A290A3}> :TABLE #(57 #<PACKAGE "WEBDRIVER-CLIENT"> DELETE-SESSION WEBDRIVE..
 12: (SB-FASL::LOAD-AS-FASL #<SB-SYS:FD-STREAM for "file /private/var/tmp/slime0xMRXb.fasl" {1003A290A3}> NIL NIL)
 13: ((FLET SB-FASL::THUNK :IN LOAD))
 14: (SB-FASL::CALL-WITH-LOAD-BINDINGS #<FUNCTION (FLET SB-FASL::THUNK :IN LOAD) {C386F5B}> #<SB-SYS:FD-STREAM for "file /private/var/tmp/slime0xMRXb.fasl" {1003A290A3}>)
 15: ((FLET SB-FASL::LOAD-STREAM :IN LOAD) #<SB-SYS:FD-STREAM for "file /private/var/tmp/slime0xMRXb.fasl" {1003A290A3}> T)
 16: (LOAD #P"/private/var/tmp/slime0xMRXb.fasl" :VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST T :EXTERNAL-FORMAT :DEFAULT)
 17: ((FLET SWANK/BACKEND:CALL-WITH-COMPILATION-HOOKS :IN "/Users/rajasegarchandran/.emacs.d/elpa/slime-20210614.1523/swank/sbcl.lisp") #<FUNCTION (LAMBDA NIL :IN SWANK/BACKEND:SWANK-COMPILE-STRING) {1003A..
 18: ((FLET SWANK/BACKEND:SWANK-COMPILE-STRING :IN "/Users/rajasegarchandran/.emacs.d/elpa/slime-20210614.1523/swank/sbcl.lisp") "(with-session () ..)
 19: ((LAMBDA NIL :IN SWANK:COMPILE-STRING-FOR-EMACS))
 20: ((LAMBDA NIL :IN SWANK::COLLECT-NOTES))
 21: (SWANK::MEASURE-TIME-INTERVAL #<FUNCTION (LAMBDA NIL :IN SWANK::COLLECT-NOTES) {10039D8D3B}>)
 22: (SWANK::COLLECT-NOTES #<FUNCTION (LAMBDA NIL :IN SWANK:COMPILE-STRING-FOR-EMACS) {10039D8CEB}>)
 23: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<FUNCTION (LAMBDA NIL :IN SWANK:COMPILE-STRING-FOR-EMACS) {10039D8C9B}>)
 24: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:COMPILE-STRING-FOR-EMACS "(with-session () ..)
 25: (EVAL (SWANK:COMPILE-STRING-FOR-EMACS "(with-session () ..)
 26: (SWANK:EVAL-FOR-EMACS (SWANK:COMPILE-STRING-FOR-EMACS "(with-session () ..)
 27: ((LAMBDA NIL :IN SWANK::SPAWN-WORKER-THREAD))
 28: (SWANK/SBCL::CALL-WITH-BREAK-HOOK #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<FUNCTION (LAMBDA NIL :IN SWANK::SPAWN-WORKER-THREAD) {5359850B}>)
 29: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/rajasegarchandran/.emacs.d/elpa/slime-20210614.1523/swank/sbcl.lisp") #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<FUNCTION (LAMBDA NIL :IN SWANK::S..
 30: (SWANK::CALL-WITH-BINDINGS ((*STANDARD-INPUT* . #<SWANK/GRAY::SLIME-INPUT-STREAM {10036F2A03}>)) #<FUNCTION (LAMBDA NIL :IN SWANK::SPAWN-WORKER-THREAD) {5359877B}>)
 31: ((LAMBDA NIL :IN SWANK::SPAWN-WORKER-THREAD))
 32: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
 33: ((FLET "WITHOUT-INTERRUPTS-BODY-11" :IN SB-THREAD::RUN))
 34: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
 35: ((FLET "WITHOUT-INTERRUPTS-BODY-4" :IN SB-THREAD::RUN))
 36: (SB-THREAD::RUN)
 37: ("foreign function: call_into_lisp")
 38: ("foreign function: funcall1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant